pub enum WindowFrameUnits {
Rows,
Range,
Groups,
}
Expand description
There are three frame types: ROWS, GROUPS, and RANGE. The frame type determines how the starting and ending boundaries of the frame are measured.
Variants
Rows
The ROWS frame type means that the starting and ending boundaries for the frame are determined by counting individual rows relative to the current row.
Range
The RANGE frame type requires that the ORDER BY clause of the window have exactly one term. Call that term “X”. With the RANGE frame type, the elements of the frame are determined by computing the value of expression X for all rows in the partition and framing those rows for which the value of X is within a certain range of the value of X for the current row.
Groups
The GROUPS frame type means that the starting and ending boundaries are determine by counting “groups” relative to the current group. A “group” is a set of rows that all have equivalent values for all all terms of the window ORDER BY clause.
Trait Implementations
sourceimpl Clone for WindowFrameUnits
impl Clone for WindowFrameUnits
sourcefn clone(&self) -> WindowFrameUnits
fn clone(&self) -> WindowFrameUnits
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowFrameUnits
impl Debug for WindowFrameUnits
sourceimpl Display for WindowFrameUnits
impl Display for WindowFrameUnits
sourceimpl From<WindowFrameUnits> for WindowFrameUnits
impl From<WindowFrameUnits> for WindowFrameUnits
sourcefn from(value: WindowFrameUnits) -> Self
fn from(value: WindowFrameUnits) -> Self
Converts to this type from the input type.
sourceimpl Hash for WindowFrameUnits
impl Hash for WindowFrameUnits
sourceimpl PartialEq<WindowFrameUnits> for WindowFrameUnits
impl PartialEq<WindowFrameUnits> for WindowFrameUnits
sourceimpl PartialOrd<WindowFrameUnits> for WindowFrameUnits
impl PartialOrd<WindowFrameUnits> for WindowFrameUnits
sourcefn partial_cmp(&self, other: &WindowFrameUnits) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowFrameUnits) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for WindowFrameUnits
impl Eq for WindowFrameUnits
impl StructuralEq for WindowFrameUnits
impl StructuralPartialEq for WindowFrameUnits
Auto Trait Implementations
impl RefUnwindSafe for WindowFrameUnits
impl Send for WindowFrameUnits
impl Sync for WindowFrameUnits
impl Unpin for WindowFrameUnits
impl UnwindSafe for WindowFrameUnits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.