pub struct WindowAdapter<F> { /* private fields */ }Expand description
Type-erased adapter for WindowFunction, analogous to
AggregateAdapter.
Implementations§
Source§impl<F> WindowAdapter<F>
impl<F> WindowAdapter<F>
Trait Implementations§
Source§impl<F> WindowFunction for WindowAdapter<F>where
F: WindowFunction,
F::State: 'static,
impl<F> WindowFunction for WindowAdapter<F>where
F: WindowFunction,
F::State: 'static,
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
Auto Trait Implementations§
impl<F> Freeze for WindowAdapter<F>where
F: Freeze,
impl<F> RefUnwindSafe for WindowAdapter<F>where
F: RefUnwindSafe,
impl<F> Send for WindowAdapter<F>where
F: Send,
impl<F> Sync for WindowAdapter<F>where
F: Sync,
impl<F> Unpin for WindowAdapter<F>where
F: Unpin,
impl<F> UnsafeUnpin for WindowAdapter<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for WindowAdapter<F>where
F: UnwindSafe,
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