pub struct PercentRankFunction;Expand description
PERCENT_RANK window function
Returns the relative rank of the current row: (rank - 1) / (total_rows - 1). The result is always between 0 and 1. The first row always has PERCENT_RANK of 0.
Formula: (rank - 1) / (n - 1), where n is the number of rows in the partition.
Trait Implementations§
Source§impl Default for PercentRankFunction
impl Default for PercentRankFunction
Source§fn default() -> PercentRankFunction
fn default() -> PercentRankFunction
Returns the “default value” for a type. Read more
Source§impl WindowFunction for PercentRankFunction
impl WindowFunction for PercentRankFunction
Auto Trait Implementations§
impl Freeze for PercentRankFunction
impl RefUnwindSafe for PercentRankFunction
impl Send for PercentRankFunction
impl Sync for PercentRankFunction
impl Unpin for PercentRankFunction
impl UnwindSafe for PercentRankFunction
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
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