ChangeSet
struct · ferroui-dynamic-data · v0.5.0
struct ChangeSet<T, K>
The changes of one edit of a cache (ChangeSet<TObject, TKey>): a shared, immutable list,
which every observer of a sequence receives as it is (docs/porting/reactive.md, section 5.4).
Members
empty
fn empty() -> Self
A change set without changes (ChangeSet<TObject, TKey>.Empty).
changes
fn changes(self: &Self) -> &[Change<T, K>]
The changes, in order.
count
fn count(self: &Self) -> usize
The number of changes (Count).
adds
fn adds(self: &Self) -> usize
The number of additions (Adds).
updates
fn updates(self: &Self) -> usize
The number of updates (Updates).
removes
fn removes(self: &Self) -> usize
The number of removals (Removes).
refreshes
fn refreshes(self: &Self) -> usize
The number of refreshes (Refreshes).
moves
fn moves(self: &Self) -> usize
The number of moves (Moves).
to_vec
fn to_vec(self: &Self) -> Vec<Change<T, K>>
where T: Clone,
K: Clone
The changes as a list of their own, to build on.
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, K>>>FromIterator<Change<T, K>>DerefIntoIteratorPartialEqDebugIChangeSet<T, K>From<ChangeSet<Group<T, K, G>, G>>From<ChangeSet<ImmutableGroup<T, K, G>, G>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.