Skip to main content

OrderExt

Trait OrderExt 

Source
pub trait OrderExt: IntoExpr + Sized {
    // Provided methods
    fn asc(self) -> OrderKey<Self::Req> { ... }
    fn sort(self, dir: SortDir) -> OrderKey<Self::Req> { ... }
    fn desc(self) -> OrderKey<Self::Req> { ... }
}

Provided Methods§

Source

fn asc(self) -> OrderKey<Self::Req>

Source

fn sort(self, dir: SortDir) -> OrderKey<Self::Req>

The direction as a value, for a sort order that arrives at runtime — ?dir=desc — instead of an N-way match over .asc()/.desc().

Source

fn desc(self) -> OrderKey<Self::Req>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: IntoExpr> OrderExt for T