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>).
Members
add_or_update_itemsadd_or_update_items_withadd_or_updateadd_or_update_withloadlookup_itemrefresh_itemsrefresh_itemremove_itemsremove_item
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>)).
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>)).
add_or_update
fn add_or_update(self: &mut Self, item: T)
Adds or replaces the item (AddOrUpdate(TObject)).
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>)).
load
fn load(self: &mut Self, items: &mut dyn Iterator<Item = T>)
Replaces every item with the items (Load).
lookup_item
fn lookup_item(self: &Self, item: &T) -> Option<T>
The item of the key of item (Lookup(TObject)).
refresh_items
fn refresh_items(self: &mut Self, items: &mut dyn Iterator<Item = T>)
Refreshes the items (Refresh(IEnumerable<TObject>)).
refresh_item
fn refresh_item(self: &mut Self, item: &T)
Refreshes the item (Refresh(TObject)).
remove_items
fn remove_items(self: &mut Self, items: &mut dyn Iterator<Item = T>)
Removes the items (Remove(IEnumerable<TObject>)).
remove_item
fn remove_item(self: &mut Self, item: &T)
Removes the item (Remove(TObject)).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.