pub enum WindowFunc {
RowNumber,
Rank,
DenseRank,
Lag {
expr: Box<Expr>,
offset: Option<usize>,
default: Option<Box<Expr>>,
},
Lead {
expr: Box<Expr>,
offset: Option<usize>,
default: Option<Box<Expr>>,
},
}Expand description
๐ Window function types
Variantsยง
RowNumber
ROW_NUMBER() - sequential number of row within partition
Rank
RANK() - rank with gaps for ties
DenseRank
DENSE_RANK() - rank without gaps for ties
Lag
LAG(expr, offset, default) - value from previous row
Lead
LEAD(expr, offset, default) - value from next row
Trait Implementationsยง
Sourceยงimpl Clone for WindowFunc
impl Clone for WindowFunc
Sourceยงfn clone(&self) -> WindowFunc
fn clone(&self) -> WindowFunc
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 Freeze for WindowFunc
impl RefUnwindSafe for WindowFunc
impl Send for WindowFunc
impl Sync for WindowFunc
impl Unpin for WindowFunc
impl UnsafeUnpin for WindowFunc
impl UnwindSafe for WindowFunc
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more