FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ObservableCollectionEx

    trait · ferroui-dynamic-data · v0.5.0

    trait ObservableCollectionEx<T: Clone + PartialEq + 'static>
    

    The changes of an observable collection as an observable (ObservableCollectionEx), for ObservableCollection<T>, ObservableCollectionExtended<T> and ReadOnlyObservableCollection<T>.

    Deviation (DEVIATIONS.md, DynamicData): upstream's generic form takes any INotifyCollectionChanged that enumerates its items; here the collections are those that notify their items, which the untyped INotifyCollectionChanged of ferroui-system does not.

    View source

    Members

    notifying_collection

    fn notifying_collection(self: &Self) -> ObservableCollection<T>
    

    The observable collection whose changes are observed.

    Source

    observe_collection_changes

    fn observe_collection_changes(self: &Self) -> Rc<dyn IObservable<CollectionChangedEventPattern<T>>>
    

    The notifications of the changes of the collection (ObserveCollectionChanges).

    Source

    to_observable_change_set

    fn to_observable_change_set(self: &Self) -> Rc<dyn IObservable<ChangeSet<T>>>
    

    The items of the collection as change sets of a list: its items first, then each of its changes (ToObservableChangeSet<T>(), ToObservableChangeSet<TCollection, T>()).

    Source

    to_observable_change_set_with_key

    fn to_observable_change_set_with_key<K: Eq + Hash + Clone + 'static>(self: &Self, key_selector: impl Fn(&T) -> K + 'static) -> Rc<dyn IObservable<crate::cache::ChangeSet<T, K>>>
    

    to_observable_change_set with each item keyed by key_selector (ToObservableChangeSet<TObject, TKey>(Func<TObject, TKey>)).

    Source

    Trait implementations

    Availability

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