Struct hirofa_utils::cache::Cache
source · pub struct Cache<K: Eq + Hash, O> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<K: Eq + Hash + Clone, O> CacheIFace<K, O> for Cache<K, O>
impl<K: Eq + Hash + Clone, O> CacheIFace<K, O> for Cache<K, O>
fn invalidate_all(&mut self)
fn invalidate_stale(&mut self)
fn opt(&mut self, key: &K) -> Option<&O>
fn opt_mut(&mut self, key: &K) -> Option<&mut O>
fn opt_no_touch(&self, key: &K) -> Option<&O>
fn get(&mut self, key: &K) -> Option<&O>
fn get_mut(&mut self, key: &K) -> Option<&mut O>
fn contains_key(&self, key: &K) -> bool
fn invalidate(&mut self, key: &K)
fn insert(&mut self, key: K, item: O)
Auto Trait Implementations§
impl<K, O> Freeze for Cache<K, O>
impl<K, O> !RefUnwindSafe for Cache<K, O>
impl<K, O> Send for Cache<K, O>
impl<K, O> !Sync for Cache<K, O>
impl<K, O> Unpin for Cache<K, O>
impl<K, O> !UnwindSafe for Cache<K, O>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more