Skip to main content

Window

Struct Window 

Source
pub struct Window<Req> { /* private fields */ }
Expand description

Accumulates a window’s PARTITION BY/ORDER BY lists, growing Req via Concat as Expr::and/or do — so partitioning by an out-of-scope column fails the same Superset check any other expression would.

Implementations§

Source§

impl<Req> Window<Req>

Source

pub fn partition_by<Req2>( self, key: impl IntoExpr<Req = Req2>, ) -> Window<<Req as Concat<Req2>>::Output>
where Req: Concat<Req2>,

Source

pub fn order_by<Req2>( self, key: OrderKey<Req2>, ) -> Window<<Req as Concat<Req2>>::Output>
where Req: Concat<Req2>,

Auto Trait Implementations§

§

impl<Req> Freeze for Window<Req>
where PhantomData<fn() -> Req>: Freeze,

§

impl<Req> RefUnwindSafe for Window<Req>
where PhantomData<fn() -> Req>: RefUnwindSafe,

§

impl<Req> Send for Window<Req>
where PhantomData<fn() -> Req>: Send,

§

impl<Req> Sync for Window<Req>
where PhantomData<fn() -> Req>: Sync,

§

impl<Req> Unpin for Window<Req>
where PhantomData<fn() -> Req>: Unpin,

§

impl<Req> UnsafeUnpin for Window<Req>
where PhantomData<fn() -> Req>: UnsafeUnpin,

§

impl<Req> UnwindSafe for Window<Req>
where PhantomData<fn() -> Req>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S> Superset<Nil, Nil> for S

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WrapNullable<NotNull> for T