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>).
Members
add_or_update_pairsadd_or_update_with_keyclearclone_changesget_keyget_key_valuesrefresh_allrefresh_keysrefresh_keyremove_keysremove_keyremove_pairs
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>)).
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)).
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), Update(IChangeSet)).
get_key
fn get_key(self: &Self, item: &T) -> K
The key of item (GetKey).
Panics
When the cache has no key selector (KeySelectorException).
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).
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_key
fn refresh_key(self: &mut Self, key: &K)
Refreshes the item of key (Refresh(TKey)).
remove_keys
fn remove_keys(self: &mut Self, keys: &mut dyn Iterator<Item = K>)
Removes the items of the keys (Remove(IEnumerable<TKey>), RemoveKeys).
remove_key
fn remove_key(self: &mut Self, key: &K)
Removes the item of key (Remove(TKey), RemoveKey, Remove(KeyValuePair)).
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>)).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.