pub struct SampleAggregator { /* private fields */ }Expand description
SAMPLE aggregator (returns first non-null value)
Implementations§
Trait Implementations§
Source§impl Aggregator for SampleAggregator
impl Aggregator for SampleAggregator
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 SampleAggregator
impl Clone for SampleAggregator
Source§impl Debug for SampleAggregator
impl Debug for SampleAggregator
Auto Trait Implementations§
impl Freeze for SampleAggregator
impl RefUnwindSafe for SampleAggregator
impl Send for SampleAggregator
impl Sync for SampleAggregator
impl Unpin for SampleAggregator
impl UnsafeUnpin for SampleAggregator
impl UnwindSafe for SampleAggregator
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