pub struct WindowTotalFunc;Trait Implementations§
Source§impl WindowFunction for WindowTotalFunc
impl WindowFunction for WindowTotalFunc
Source§fn initial_state(&self) -> Self::State
fn initial_state(&self) -> Self::State
Create a fresh accumulator.
Source§fn step(&self, state: &mut Self::State, args: &[SqliteValue]) -> Result<()>
fn step(&self, state: &mut Self::State, args: &[SqliteValue]) -> Result<()>
Add a row to the window frame.
Source§fn inverse(&self, state: &mut Self::State, args: &[SqliteValue]) -> Result<()>
fn inverse(&self, state: &mut Self::State, args: &[SqliteValue]) -> Result<()>
Remove a row from the window frame (sliding window support). Read more
Source§fn value(&self, state: &Self::State) -> Result<SqliteValue>
fn value(&self, state: &Self::State) -> Result<SqliteValue>
Return the current result without consuming state. Read more
Source§fn finalize(&self, state: Self::State) -> Result<SqliteValue>
fn finalize(&self, state: Self::State) -> Result<SqliteValue>
Consume the accumulator and produce the final result.
Source§fn min_args(&self) -> i32
fn min_args(&self) -> i32
Minimum accepted SQL argument count for variadic functions. Read more
Source§fn max_args(&self) -> Option<i32>
fn max_args(&self) -> Option<i32>
Maximum accepted SQL argument count, or
None for unbounded variadic
functions.Source§fn accepts_arg_count(&self, num_args: i32) -> bool
fn accepts_arg_count(&self, num_args: i32) -> bool
Return whether this function accepts
num_args SQL arguments.Auto Trait Implementations§
impl Freeze for WindowTotalFunc
impl RefUnwindSafe for WindowTotalFunc
impl Send for WindowTotalFunc
impl Sync for WindowTotalFunc
impl Unpin for WindowTotalFunc
impl UnsafeUnpin for WindowTotalFunc
impl UnwindSafe for WindowTotalFunc
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