pub struct WindowFunc<K> { /* private fields */ }Expand description
A bare, argument-free window function reference (row_number(),
rank(), dense_rank()) — not yet a usable expression, since a window
function has no meaning without an OVER (..) clause. See this module’s
doc comment for why this is a separate type from Expr rather than
Expr itself.
K is the row key .over(..) stamps onto the result, so a selected
row_number() is readable as row.row_number() with nothing declared.
Implementations§
Source§impl<K> WindowFunc<K>
impl<K> WindowFunc<K>
Trait Implementations§
impl<K: Spelled> LookupKey for WindowFunc<K>
So row.get(row_number()) works: the key is the function, and a window
spec would only be noise at the lookup.
Auto Trait Implementations§
impl<K> Freeze for WindowFunc<K>
impl<K> RefUnwindSafe for WindowFunc<K>
impl<K> Send for WindowFunc<K>
impl<K> Sync for WindowFunc<K>
impl<K> Unpin for WindowFunc<K>
impl<K> UnsafeUnpin for WindowFunc<K>
impl<K> UnwindSafe for WindowFunc<K>
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