pub enum WindowType {
WindowSpec(WindowSpec),
NamedWindow(Ident),
}Expand description
The type of a window used in OVER clauses.
A window can be either an inline specification (WindowSpec) or a
reference to a previously defined named window.
WindowSpec(WindowSpec): An inline window specification, e.g.OVER (PARTITION BY ... ORDER BY ...).NamedWindow(Ident): A reference to a named window declared elsewhere.
Variants§
WindowSpec(WindowSpec)
An inline window specification.
NamedWindow(Ident)
A reference to a previously defined named window.
Trait Implementations§
Source§impl Clone for WindowType
impl Clone for WindowType
Source§fn clone(&self) -> WindowType
fn clone(&self) -> WindowType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowType
impl Debug for WindowType
Source§impl Display for WindowType
impl Display for WindowType
Source§impl Hash for WindowType
impl Hash for WindowType
Source§impl Ord for WindowType
impl Ord for WindowType
Source§fn cmp(&self, other: &WindowType) -> Ordering
fn cmp(&self, other: &WindowType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WindowType
impl PartialEq for WindowType
Source§impl PartialOrd for WindowType
impl PartialOrd for WindowType
Source§impl Visit for WindowType
impl Visit for WindowType
Source§impl VisitMut for WindowType
impl VisitMut for WindowType
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for WindowType
impl StructuralPartialEq for WindowType
Auto Trait Implementations§
impl Freeze for WindowType
impl RefUnwindSafe for WindowType
impl Send for WindowType
impl Sync for WindowType
impl Unpin for WindowType
impl UnsafeUnpin for WindowType
impl UnwindSafe for WindowType
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