FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICacheUpdater

    trait · ferroui-dynamic-data · v0.5.0

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

    An edit of a cache whose items carry their keys (ICacheUpdater<TObject, TKey>).

    View source

    Members

    add_or_update_pairs

    fn add_or_update_pairs(self: &mut Self, pairs: &mut dyn Iterator<Item = (K, T)>)
    

    Adds or replaces the items of the keys (AddOrUpdate(IEnumerable<KeyValuePair>)).

    Source

    add_or_update_with_key

    fn add_or_update_with_key(self: &mut Self, item: T, key: K)
    

    Adds or replaces the item of key (AddOrUpdate(TObject, TKey), AddOrUpdate(KeyValuePair)).

    Source

    clear

    fn clear(self: &mut Self)
    

    Removes every item (Clear).

    Source

    clone_changes

    fn clone_changes(self: &mut Self, changes: &ChangeSet<T, K>)
    

    Applies a change set (Clone(IChangeSet), Update(IChangeSet)).

    Source

    get_key

    fn get_key(self: &Self, item: &T) -> K
    

    The key of item (GetKey).

    Panics

    When the cache has no key selector (KeySelectorException).

    Source

    get_key_values

    fn get_key_values(self: &Self, items: &mut dyn Iterator<Item = T>) -> Vec<(K, T)>
    

    The keys of the items, with the items (GetKeyValues).

    Source

    refresh_all

    fn refresh_all(self: &mut Self)
    

    Refreshes every item (Refresh()).

    Source

    refresh_keys

    fn refresh_keys(self: &mut Self, keys: &mut dyn Iterator<Item = K>)
    

    Refreshes the items of the keys (Refresh(IEnumerable<TKey>)).

    Source

    refresh_key

    fn refresh_key(self: &mut Self, key: &K)
    

    Refreshes the item of key (Refresh(TKey)).

    Source

    remove_keys

    fn remove_keys(self: &mut Self, keys: &mut dyn Iterator<Item = K>)
    

    Removes the items of the keys (Remove(IEnumerable<TKey>), RemoveKeys).

    Source

    remove_key

    fn remove_key(self: &mut Self, key: &K)
    

    Removes the item of key (Remove(TKey), RemoveKey, Remove(KeyValuePair)).

    Source

    remove_pairs

    fn remove_pairs(self: &mut Self, pairs: &mut dyn Iterator<Item = (K, T)>)
    

    Removes the items of the pairs' keys (Remove(IEnumerable<KeyValuePair>)).

    Source

    Availability

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