FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICache

    trait · ferroui-dynamic-data · v0.5.0

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

    A keyed collection that can be edited (ICache<TObject, TKey>).

    View source

    Members

    add_or_update

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

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

    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<TObject, TKey>)).

    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

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

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

    Source

    remove

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

    Removes the item of key (Remove(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>)).

    Source

    Trait implementations

    Availability

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