FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PageResponse

    struct · ferroui-dynamic-data · v0.5.0

    struct PageResponse
    

    The page that a paged change set holds (PageResponse). Two responses are equal when their parts are (PageResponse.DefaultComparer).

    View source

    Members

    new

    const fn new(page_size: usize, total_size: usize, page: usize, pages: usize) -> Self
    

    The page page of pages, of page_size items, of total_size items in all (PageResponse(int pageSize, int totalSize, int page, int pages)).

    Source

    page

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

    The page, from 1 (Page).

    Source

    pages

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

    The number of pages (Pages).

    Source

    page_size

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

    The number of items of a page (PageSize).

    Source

    total_size

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

    The number of items of all the pages (TotalSize).

    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
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • IPageResponse
    • Display

    Availability

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