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§
source§impl Clone for WindowFrameUnits
impl Clone for WindowFrameUnits
source§fn clone(&self) -> WindowFrameUnits
fn clone(&self) -> WindowFrameUnits
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WindowFrameUnits
impl Debug for WindowFrameUnits
source§impl Display for WindowFrameUnits
impl Display for WindowFrameUnits
source§impl From<WindowFrameUnits> for WindowFrameUnits
impl From<WindowFrameUnits> for WindowFrameUnits
source§fn from(value: WindowFrameUnits) -> Self
fn from(value: WindowFrameUnits) -> Self
source§impl Hash for WindowFrameUnits
impl Hash for WindowFrameUnits
source§impl PartialEq for WindowFrameUnits
impl PartialEq for WindowFrameUnits
source§impl PartialOrd for WindowFrameUnits
impl PartialOrd for WindowFrameUnits
impl Copy for WindowFrameUnits
impl Eq for WindowFrameUnits
impl StructuralPartialEq for WindowFrameUnits
Auto Trait Implementations§
impl Freeze for WindowFrameUnits
impl RefUnwindSafe for WindowFrameUnits
impl Send for WindowFrameUnits
impl Sync for WindowFrameUnits
impl Unpin for WindowFrameUnits
impl UnwindSafe for WindowFrameUnits
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.