RangeChange
struct · ferroui-dynamic-data · v0.5.0
struct RangeChange<T>
The items of a change of a range, and the index of the first (RangeChange<T>).
Members
new
fn new(items: Vec<T>, index: Option<usize>) -> Self
RangeChange(IEnumerable<T>, int index = -1).
count
fn count(self: &Self) -> usize
The number of items (Count).
index
fn index(self: &Self) -> Option<usize>
The index of the first item (Index).
items
fn items(self: &Self) -> &[T]
The items.
iter
fn iter(self: &Self) -> std::slice::Iter<'_, T>
add
fn add(self: &mut Self, item: T)
Adds an item at the end (Add).
insert
fn insert(self: &mut Self, index: usize, item: T)
Inserts an item (Insert).
set_starting_index
fn set_starting_index(self: &mut Self, index: Option<usize>)
Sets the index of the first item (SetStartingIndex).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedEquivalent<K>CloneDebugStructuralPartialEqPartialEqEqHashDefaultIntoIterator
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.