FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PageRequest

    struct · ferroui-dynamic-data · v0.5.0

    struct PageRequest
    

    A request of a page of sorted items (PageRequest): the page, from 1, and its size.

    Deviation (DEVIATIONS.md, DynamicData): the page and the size are usize, so upstream's ArgumentException for a negative one cannot arise. Two requests are equal when their parts are (PageRequest.DefaultComparer).

    View source

    Members

    DEFAULT

    const DEFAULT: Self
    

    The first page of 25 items (PageRequest.Default, new PageRequest()).

    Source

    EMPTY

    const EMPTY: Self
    

    The request of nothing (PageRequest.Empty).

    Source

    new

    const fn new(page: usize, size: usize) -> Self
    

    The page page of size items (PageRequest(int page, int size)).

    Source

    page

    const fn page(self: &Self) -> usize
    

    The page, from 1 (Page).

    Source

    size

    const fn size(self: &Self) -> usize
    

    The number of items of a page (Size).

    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
    • ToString
    • Equivalent<K>
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Default
    • IPageRequest
    • Display

    Availability

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