Skip to main content

IIntermediateCache

Trait IIntermediateCache 

Source
pub trait IIntermediateCache<T, K>: IObservableCache<T, K> {
    // Required method
    fn edit(&self, update: &mut dyn FnMut(&mut dyn ICacheUpdater<T, K>));
}
Expand description

A cache whose edits give the keys of the items (IIntermediateCache<TObject, TKey>).

Required Methods§

Source

fn edit(&self, update: &mut dyn FnMut(&mut dyn ICacheUpdater<T, K>))

Runs an edit; its changes are delivered as one change set when it ends (Edit).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Clone + 'static, K: Eq + Hash + Clone + 'static> IIntermediateCache<T, K> for IntermediateCache<T, K>