pub struct SumAggregator { /* private fields */ }Expand description
SUM aggregator
Implementations§
Source§impl SumAggregator
impl SumAggregator
Trait Implementations§
Source§impl Aggregator for SumAggregator
impl Aggregator for SumAggregator
Source§fn accumulate(&mut self, value: Option<&Value>)
fn accumulate(&mut self, value: Option<&Value>)
Process a single value
Source§fn new_instance(&self) -> Box<dyn Aggregator>
fn new_instance(&self) -> Box<dyn Aggregator>
Create a fresh copy for a new group
Source§impl Clone for SumAggregator
impl Clone for SumAggregator
Source§impl Debug for SumAggregator
impl Debug for SumAggregator
Auto Trait Implementations§
impl Freeze for SumAggregator
impl RefUnwindSafe for SumAggregator
impl Send for SumAggregator
impl Sync for SumAggregator
impl Unpin for SumAggregator
impl UnsafeUnpin for SumAggregator
impl UnwindSafe for SumAggregator
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