pub struct CountFunc;Expand description
count(X) — counts non-NULL values of X.
Trait Implementations§
Source§impl AggregateFunction for CountFunc
impl AggregateFunction for CountFunc
Source§fn initial_state(&self) -> Self::State
fn initial_state(&self) -> Self::State
Create a fresh accumulator (zero/identity state).
Source§fn step(&self, state: &mut Self::State, args: &[SqliteValue]) -> Result<()>
fn step(&self, state: &mut Self::State, args: &[SqliteValue]) -> Result<()>
Process one row, updating the accumulator.
Auto Trait Implementations§
impl Freeze for CountFunc
impl RefUnwindSafe for CountFunc
impl Send for CountFunc
impl Sync for CountFunc
impl Unpin for CountFunc
impl UnsafeUnpin for CountFunc
impl UnwindSafe for CountFunc
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