pub struct WindowFnExpr<'a, V: SQLParam, T: DataType, N: Nullability, S = ()> { /* private fields */ }Expand description
A window function that still needs its OVER (...) clause.
row_number, rank, lag and the other pure window functions
return this type. It implements neither Expr nor ToSQL, so it
cannot be used in a query until over is called.
ⓘ
// ROW_NUMBER() without OVER is not an expression.
let wrong = gt(row_number::<Value>(), 1);Implementations§
Source§impl<'a, V, T, N, S> WindowFnExpr<'a, V, T, N, S>
impl<'a, V, T, N, S> WindowFnExpr<'a, V, T, N, S>
Trait Implementations§
Auto Trait Implementations§
impl<'a, V, T, N, S> Freeze for WindowFnExpr<'a, V, T, N, S>
impl<'a, V, T, N, S> RefUnwindSafe for WindowFnExpr<'a, V, T, N, S>
impl<'a, V, T, N, S> Send for WindowFnExpr<'a, V, T, N, S>
impl<'a, V, T, N, S> Sync for WindowFnExpr<'a, V, T, N, S>
impl<'a, V, T, N, S> Unpin for WindowFnExpr<'a, V, T, N, S>
impl<'a, V, T, N, S> UnsafeUnpin for WindowFnExpr<'a, V, T, N, S>
impl<'a, V, T, N, S> UnwindSafe for WindowFnExpr<'a, V, T, N, S>
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