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.
Members
new
fn new(item: T, index: usize) -> Self
The pair (ItemWithIndex(T, int)).
item
fn item(self: &Self) -> &T
The item (Item).
index
fn index(self: &Self) -> usize
The index (Index).
into_parts
fn into_parts(self: Self) -> (T, usize)
The item and the index.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringEquivalent<K>CloneCopyDebugPartialEqEqHashDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.