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<WindowFrameUnits> for WindowFrameUnits
impl PartialEq<WindowFrameUnits> for WindowFrameUnits
source§fn eq(&self, other: &WindowFrameUnits) -> bool
fn eq(&self, other: &WindowFrameUnits) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WindowFrameUnits> for WindowFrameUnits
impl PartialOrd<WindowFrameUnits> for WindowFrameUnits
source§fn partial_cmp(&self, other: &WindowFrameUnits) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowFrameUnits) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl 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§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.