pub struct WindowFnExpr<'a, V: SQLParam, T: DataType, N: Nullability> { /* private fields */ }Expand description
A window function expression that is not yet valid SQL.
Pure window functions like ROW_NUMBER, RANK, LAG, etc. MUST have an
.over() call before they can be used in a query. This type enforces
that at compile time by not implementing Expr or ToSQL.
Implementations§
Source§impl<'a, V, T, N> WindowFnExpr<'a, V, T, N>
impl<'a, V, T, N> WindowFnExpr<'a, V, T, N>
Sourcepub fn over(self, spec: WindowSpec<'a, V>) -> SQLExpr<'a, V, T, N, Scalar>
pub fn over(self, spec: WindowSpec<'a, V>) -> SQLExpr<'a, V, T, N, Scalar>
Apply a window specification, producing a usable scalar expression.
Generates <fn> OVER (...).
Trait Implementations§
Source§impl<'a, V: Clone + SQLParam, T: Clone + DataType, N: Clone + Nullability> Clone for WindowFnExpr<'a, V, T, N>
impl<'a, V: Clone + SQLParam, T: Clone + DataType, N: Clone + Nullability> Clone for WindowFnExpr<'a, V, T, N>
Source§fn clone(&self) -> WindowFnExpr<'a, V, T, N>
fn clone(&self) -> WindowFnExpr<'a, V, T, N>
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<'a, V, T, N> Freeze for WindowFnExpr<'a, V, T, N>where
V: Freeze,
impl<'a, V, T, N> RefUnwindSafe for WindowFnExpr<'a, V, T, N>
impl<'a, V, T, N> Send for WindowFnExpr<'a, V, T, N>
impl<'a, V, T, N> Sync for WindowFnExpr<'a, V, T, N>
impl<'a, V, T, N> Unpin for WindowFnExpr<'a, V, T, N>
impl<'a, V, T, N> UnsafeUnpin for WindowFnExpr<'a, V, T, N>where
V: UnsafeUnpin,
impl<'a, V, T, N> UnwindSafe for WindowFnExpr<'a, V, T, N>
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