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>).
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)).
clear
fn clear(self: &mut Self)
Removes every item (Clear).
clone_changes
fn clone_changes(self: &mut Self, changes: &ChangeSet<T, K>)
Applies a change set (Clone(IChangeSet<TObject, TKey>)).
refresh_all
fn refresh_all(self: &mut Self)
Refreshes every item (Refresh()).
refresh_keys
fn refresh_keys(self: &mut Self, keys: &mut dyn Iterator<Item = K>)
Refreshes the items of the keys (Refresh(IEnumerable<TKey>)).
refresh
fn refresh(self: &mut Self, key: &K)
Refreshes the item of key (Refresh(TKey)).
remove
fn remove(self: &mut Self, key: &K)
Removes the item of key (Remove(TKey)).
remove_keys
fn remove_keys(self: &mut Self, keys: &mut dyn Iterator<Item = K>)
Removes the items of the keys (Remove(IEnumerable<TKey>)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.