FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    VirtualRequest

    struct · ferroui-dynamic-data · v0.5.0

    struct VirtualRequest
    

    A request of a window of sorted items (VirtualRequest): the index of the first item and the number of items.

    Deviation (DEVIATIONS.md, DynamicData): the index and the size are usize, so a negative request, which the operators ignore upstream, cannot be made. Two requests are equal when their parts are (VirtualRequest.StartIndexSizeComparer).

    View source

    Members

    DEFAULT

    const DEFAULT: Self
    

    The first 25 items (VirtualRequest.Default, new VirtualRequest()).

    Source

    new

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

    The size items from start_index (VirtualRequest(int startIndex, int size)).

    Source

    size

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

    The number of items (Size).

    Source

    start_index

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

    The index of the first item (StartIndex).

    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
    • IVirtualRequest
    • Display

    Availability

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