pub enum FromFirstLast {
First,
Last,
}Expand description
FROM FIRST / FROM LAST — which end of the window frame NTH_VALUE counts its
Nth row from (SQL:2016 from_first_last).
Two spellings of the same construct kept as data so the surface round-trips (the
NullTreatment precedent). FROM FIRST is the default; FROM LAST completes the
surface for a dialect that admits it (mysql:8 feature-rejects it, so its parser only
ever produces First).
Variants§
First
FROM FIRST — count from the first row of the frame (the default).
Last
FROM LAST — count from the last row of the frame.
Trait Implementations§
Source§impl Clone for FromFirstLast
impl Clone for FromFirstLast
Source§fn clone(&self) -> FromFirstLast
fn clone(&self) -> FromFirstLast
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FromFirstLast
Source§impl Debug for FromFirstLast
impl Debug for FromFirstLast
Source§impl<'de> Deserialize<'de> for FromFirstLast
impl<'de> Deserialize<'de> for FromFirstLast
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FromFirstLast
Source§impl Hash for FromFirstLast
impl Hash for FromFirstLast
Source§impl PartialEq for FromFirstLast
impl PartialEq for FromFirstLast
Source§impl Serialize for FromFirstLast
impl Serialize for FromFirstLast
impl StructuralPartialEq for FromFirstLast
Auto Trait Implementations§
impl Freeze for FromFirstLast
impl RefUnwindSafe for FromFirstLast
impl Send for FromFirstLast
impl Sync for FromFirstLast
impl Unpin for FromFirstLast
impl UnsafeUnpin for FromFirstLast
impl UnwindSafe for FromFirstLast
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