FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PageContext

    struct · ferroui-dynamic-data · v0.5.0

    struct PageContext<T>
    

    The page of a change set of SortAndPage, with the comparer and the options (record PageContext<TObject>).

    View source

    Members

    response

    response: super::PageResponse
    

    The page (Response).

    Source

    comparer

    comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>
    

    The comparer of the sort (Comparer).

    Source

    options

    options: super::SortAndPageOptions
    

    The options (Options).

    Source

    new

    fn new(response: PageResponse, comparer: Rc<dyn Fn(&T, &T) -> Ordering>, options: SortAndPageOptions) -> Self
    

    A context of its parts.

    Source

    empty

    fn empty() -> Self
    where T: 'static
    

    The context before any page (PageContext<TObject>.Empty).

    Deviation (DEVIATIONS.md, DynamicData): its comparer finds every pair equal, as there is no Comparer<TObject>.Default for every item.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • PartialEq
    • Debug

    Availability

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