ChangeSetSource
trait · ferroui-reactiveui · v0.5.0
trait ChangeSetSource<T>
A collection whose changes can be observed as change sets: it raises the typed
CollectionChanged notification and enumerates its items (upstream's constraint
INotifyCollectionChanged, IEnumerable<T>).
Deviation (DEVIATIONS.md, ReactiveUI): the INotifyCollectionChanged of ferroui-system
raises an untyped description of a change, without the items; the typed notification that
carries them is the one of each collection type, which this trait names.
Members
current_items
fn current_items(self: &Self) -> Vec<T>
A copy of the items, in order (IEnumerable<T>).
add_collection_changed
fn add_collection_changed(self: &Self, handler: Rc<CollectionChangedHandler<T>>) -> u64
Adds a handler of the typed change notifications; returns the token that removes it
(CollectionChanged +=).
remove_collection_changed
fn remove_collection_changed(self: &Self, token: u64) -> bool
Removes a handler (CollectionChanged -=).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.