pub enum WindowFunc {
RowNumber,
Rank,
DenseRank,
PercentRank,
CumeDist,
Ntile,
Lag,
Lead,
FirstValue,
LastValue,
NthValue,
}Expand description
A window function that is not an aggregate.
The aggregates are the same functions in a different frame, so they are not
listed again here: sum(x) OVER (...) is AggregateFunc::Sum with a frame,
and giving it a second spelling would mean two implementations of sum.
Variants§
RowNumber
row_number()
Rank
rank()
DenseRank
dense_rank()
PercentRank
percent_rank()
CumeDist
cume_dist()
Ntile
ntile(n)
Lag
lag(x[, offset[, default]])
Lead
lead(x[, offset[, default]])
FirstValue
first_value(x)
LastValue
last_value(x)
NthValue
nth_value(x, n)
Implementations§
Trait Implementations§
Source§impl Clone for WindowFunc
impl Clone for WindowFunc
impl Copy for WindowFunc
Source§impl Debug for WindowFunc
impl Debug for WindowFunc
impl Eq for WindowFunc
Source§impl PartialEq for WindowFunc
impl PartialEq for WindowFunc
impl StructuralPartialEq for WindowFunc
Auto 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