FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IComparerBuilder

    trait · ferroui-reactiveui · v0.5.0

    trait IComparerBuilder<T>
    

    The starting point of a chain of comparers (IComparerBuilder<T>): the first key of the order, which then_by extends (ComparerChainingExtensions).

    View source

    Members

    order_by

    fn order_by<V: Ord + 'static>(self: &Self, selector: impl Fn(&T) -> V + 'static) -> Comparer<T>
    

    In ascending order of the values of selector, compared by their Ord (OrderBy<TValue>(Func<T, TValue>)).

    Source

    order_by_with

    fn order_by_with<V: 'static>(self: &Self, selector: impl Fn(&T) -> V + 'static, comparer: Comparer<V>) -> Comparer<T>
    

    In ascending order of the values of selector, compared by comparer (OrderBy<TValue>(Func<T, TValue>, IComparer<TValue>)).

    Source

    order_by_descending

    fn order_by_descending<V: Ord + 'static>(self: &Self, selector: impl Fn(&T) -> V + 'static) -> Comparer<T>
    

    In descending order of the values of selector, compared by their Ord (OrderByDescending<TValue>(Func<T, TValue>)).

    Source

    order_by_descending_with

    fn order_by_descending_with<V: 'static>(self: &Self, selector: impl Fn(&T) -> V + 'static, comparer: Comparer<V>) -> Comparer<T>
    

    In descending order of the values of selector, compared by comparer (OrderByDescending<TValue>(Func<T, TValue>, IComparer<TValue>)).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.