pub trait IObservableCache<T, K>: IConnectableCache<T, K> + IDisposable {
// Required methods
fn count(&self) -> usize;
fn items(&self) -> Vec<T>;
fn keys(&self) -> Vec<K>;
fn key_values(&self) -> Dictionary<K, T>;
fn lookup(&self, key: &K) -> Option<T>;
}Expand description
A cache that can be observed and read (IObservableCache<TObject, TKey>).
Required Methods§
Sourcefn key_values(&self) -> Dictionary<K, T>
fn key_values(&self) -> Dictionary<K, T>
The keys and items (KeyValues).
Trait Implementations§
Source§impl<T, K> PartialEq for dyn IObservableCache<T, K>
Caches compare by identity (reference equality), so that they can be the items of a list.
impl<T, K> PartialEq for dyn IObservableCache<T, K>
Caches compare by identity (reference equality), so that they can be the items of a list.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".