FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    current_items

    fn current_items(self: &Self) -> Vec<T>
    

    A copy of the items, in order (IEnumerable<T>).

    Source

    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 +=).

    Source

    remove_collection_changed

    fn remove_collection_changed(self: &Self, token: u64) -> bool
    

    Removes a handler (CollectionChanged -=).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.