ChangeSet
struct · ferroui-dynamic-data · v0.5.0
struct ChangeSet<T>
The changes of one edit of a list (ChangeSet<T>): shared and immutable, as the change sets of
caches are.
Members
empty
fn empty() -> Self
A change set without changes (ChangeSet<T>.Empty).
changes
fn changes(self: &Self) -> &[Change<T>]
The changes, in order.
count
fn count(self: &Self) -> usize
The number of changes (Count).
adds
fn adds(self: &Self) -> usize
The number of items added, ranges counted by their items (Adds).
moves
fn moves(self: &Self) -> usize
The number of moves (Moves).
refreshes
fn refreshes(self: &Self) -> usize
The number of refreshes (Refreshes).
removes
fn removes(self: &Self) -> usize
The number of items removed, ranges and clears counted by their items (Removes).
replaced
fn replaced(self: &Self) -> usize
The number of replacements (Replaced).
total_changes
fn total_changes(self: &Self) -> usize
The number of changed items (TotalChanges).
ptr_eq
fn ptr_eq(self: &Self, other: &Self) -> bool
Whether self and other are the same change set (ReferenceEquals).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedCloneDefaultFrom<Vec<Change<T>>>FromIterator<Change<T>>DerefIntoIteratorPartialEqDebugIChangeSet<T>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.