pub struct AvgAccumulator { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Accumulator for AvgAccumulator
impl Accumulator for AvgAccumulator
Source§fn update_value(&mut self, value: &ScalarValue) -> QuillSQLResult<()>
fn update_value(&mut self, value: &ScalarValue) -> QuillSQLResult<()>
Updates the accumulator’s state from its input.
Source§fn evaluate(&self) -> QuillSQLResult<ScalarValue>
fn evaluate(&self) -> QuillSQLResult<ScalarValue>
Returns the final aggregate value, consuming the internal state.
Source§impl Clone for AvgAccumulator
impl Clone for AvgAccumulator
Source§fn clone(&self) -> AvgAccumulator
fn clone(&self) -> AvgAccumulator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AvgAccumulator
impl Debug for AvgAccumulator
Auto Trait Implementations§
impl Freeze for AvgAccumulator
impl RefUnwindSafe for AvgAccumulator
impl Send for AvgAccumulator
impl Sync for AvgAccumulator
impl Unpin for AvgAccumulator
impl UnsafeUnpin for AvgAccumulator
impl UnwindSafe for AvgAccumulator
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