FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ISourceUpdater

    trait · ferroui-dynamic-data · v0.5.0

    trait ISourceUpdater<T, K>: ICacheUpdater<T, K>
    

    An edit of a cache that knows the keys of its items (ISourceUpdater<TObject, TKey>).

    View source

    Members

    add_or_update_items

    fn add_or_update_items(self: &mut Self, items: &mut dyn Iterator<Item = T>)
    

    Adds or replaces the items (AddOrUpdate(IEnumerable<TObject>)).

    Source

    add_or_update_items_with

    fn add_or_update_items_with(self: &mut Self, items: &mut dyn Iterator<Item = T>, comparer: &dyn Fn(&T, &T) -> bool)
    

    Adds or replaces the items, leaving out an item equal to the item of its key (AddOrUpdate(IEnumerable<TObject>, IEqualityComparer<TObject>)).

    Source

    add_or_update

    fn add_or_update(self: &mut Self, item: T)
    

    Adds or replaces the item (AddOrUpdate(TObject)).

    Source

    add_or_update_with

    fn add_or_update_with(self: &mut Self, item: T, comparer: &dyn Fn(&T, &T) -> bool)
    

    Adds or replaces the item unless it equals the item of its key (AddOrUpdate(TObject, IEqualityComparer<TObject>)).

    Source

    load

    fn load(self: &mut Self, items: &mut dyn Iterator<Item = T>)
    

    Replaces every item with the items (Load).

    Source

    lookup_item

    fn lookup_item(self: &Self, item: &T) -> Option<T>
    

    The item of the key of item (Lookup(TObject)).

    Source

    refresh_items

    fn refresh_items(self: &mut Self, items: &mut dyn Iterator<Item = T>)
    

    Refreshes the items (Refresh(IEnumerable<TObject>)).

    Source

    refresh_item

    fn refresh_item(self: &mut Self, item: &T)
    

    Refreshes the item (Refresh(TObject)).

    Source

    remove_items

    fn remove_items(self: &mut Self, items: &mut dyn Iterator<Item = T>)
    

    Removes the items (Remove(IEnumerable<TObject>)).

    Source

    remove_item

    fn remove_item(self: &mut Self, item: &T)
    

    Removes the item (Remove(TObject)).

    Source

    Availability

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