pub struct CountAccumulator { /* private fields */ }Expand description
Accumulator for COUNT / COUNT(DISTINCT).
Implementations§
Trait Implementations§
Source§impl Accumulator for CountAccumulator
impl Accumulator for CountAccumulator
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 merge(&mut self, state: &[SqlValue]) -> Result<()>
fn merge(&mut self, state: &[SqlValue]) -> Result<()>
Merge a partial state produced by an accumulator of the same function.
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 CountAccumulator
impl Clone for CountAccumulator
Source§fn clone(&self) -> CountAccumulator
fn clone(&self) -> CountAccumulator
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 moreAuto Trait Implementations§
impl Freeze for CountAccumulator
impl RefUnwindSafe for CountAccumulator
impl Send for CountAccumulator
impl Sync for CountAccumulator
impl Unpin for CountAccumulator
impl UnsafeUnpin for CountAccumulator
impl UnwindSafe for CountAccumulator
Blanket Implementations§
impl<T> Allocation for T
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