FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IndexedItem

    struct · ferroui-dynamic-data · v0.5.0

    struct IndexedItem<T, K>
    

    An item of a sorted collection with its key and its index (IndexedItem<TObject, TKey>). Two indexed items are equal when their keys, items and indexes are.

    View source

    Members

    new

    fn new(value: T, key: K, index: usize) -> Self
    

    The item value of key at index (IndexedItem(TObject value, TKey key, int index)).

    Source

    index

    fn index(self: &Self) -> usize
    

    The index (Index).

    Source

    key

    fn key(self: &Self) -> &K
    

    The key (Key).

    Source

    value

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

    The item (Value).

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

    Availability

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