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.
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)).
index
fn index(self: &Self) -> usize
The index (Index).
key
fn key(self: &Self) -> &K
The key (Key).
value
fn value(self: &Self) -> &T
The item (Value).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringEquivalent<K>CloneDebugStructuralPartialEqPartialEqEqHashDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.