FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ItemWithIndex

    struct · ferroui-dynamic-data · v0.5.0

    struct ItemWithIndex<T>
    

    An item and its index (ItemWithIndex<T>): equal and hashed by the item alone, as upstream's.

    View source

    Members

    new

    fn new(item: T, index: usize) -> Self
    

    The pair (ItemWithIndex(T, int)).

    Source

    item

    fn item(self: &Self) -> &T
    

    The item (Item).

    Source

    index

    fn index(self: &Self) -> usize
    

    The index (Index).

    Source

    into_parts

    fn into_parts(self: Self) -> (T, usize)
    

    The item and the index.

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

    Availability

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