Struct memory_cache::MemoryLruCache
source · pub struct MemoryLruCache<K: Eq + Hash, V> { /* private fields */ }
Expand description
An LRU-cache which operates on memory used.
Implementations§
source§impl<K: Eq + Hash, V: MallocSizeOf> MemoryLruCache<K, V>
impl<K: Eq + Hash, V: MallocSizeOf> MemoryLruCache<K, V>
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for MemoryLruCache<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MemoryLruCache<K, V>
impl<K, V> Sync for MemoryLruCache<K, V>
impl<K, V> Unpin for MemoryLruCache<K, V>
impl<K, V> UnwindSafe for MemoryLruCache<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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