ItemChange
struct · ferroui-dynamic-data · v0.5.0
struct ItemChange<T>
The change of one item of a list (ItemChange<T>).
Members
new
fn new(reason: super::ListChangeReason, current: T, previous: Option<T>, current_index: Option<usize>, previous_index: Option<usize>) -> Self
ItemChange(ListChangeReason, T, in Optional<T>, int, int).
reason
fn reason(self: &Self) -> super::ListChangeReason
The reason (Reason).
current
fn current(self: &Self) -> &T
The item (Current).
previous
fn previous(self: &Self) -> Option<&T>
The item that was replaced (Previous).
current_index
fn current_index(self: &Self) -> Option<usize>
The index of the item (CurrentIndex; -1 upstream when none).
previous_index
fn previous_index(self: &Self) -> Option<usize>
The previous index of a moved item (PreviousIndex).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedEquivalent<K>CloneDebugStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.