pub struct TotalAccumulator { /* private fields */ }Expand description
Accumulator for TOTAL (SUM that returns 0.0 on empty/all-NULL input).
Implementations§
Trait Implementations§
Source§impl Accumulator for TotalAccumulator
impl Accumulator for TotalAccumulator
Source§fn update(&mut self, value: Option<SqlValue>) -> Result<()>
fn update(&mut self, value: Option<SqlValue>) -> Result<()>
Update the accumulator with a new value (None for COUNT(*) rows).
Source§fn finalize(&self) -> Result<SqlValue>
fn finalize(&self) -> Result<SqlValue>
Finalize the accumulator and return the resulting SqlValue.
Source§fn clone_box(&self) -> Box<dyn Accumulator>
fn clone_box(&self) -> Box<dyn Accumulator>
Clone the accumulator as a trait object.
Source§impl Clone for TotalAccumulator
impl Clone for TotalAccumulator
Source§fn clone(&self) -> TotalAccumulator
fn clone(&self) -> TotalAccumulator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TotalAccumulator
impl Debug for TotalAccumulator
Auto Trait Implementations§
impl Freeze for TotalAccumulator
impl RefUnwindSafe for TotalAccumulator
impl Send for TotalAccumulator
impl Sync for TotalAccumulator
impl Unpin for TotalAccumulator
impl UnwindSafe for TotalAccumulator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more