pub struct LrMap<K: Eq + Hash + Clone, V: Clone> { /* private fields */ }Expand description
A concurrent map optimized for read-heavy workloads.
Readers never block — not even while a write is in progress. Writers are
serialized through an internal Mutex.
Trade-off: doubled memory (two copies of the map).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, V> !Freeze for LrMap<K, V>
impl<K, V> RefUnwindSafe for LrMap<K, V>
impl<K, V> Send for LrMap<K, V>
impl<K, V> Sync for LrMap<K, V>
impl<K, V> Unpin for LrMap<K, V>
impl<K, V> UnsafeUnpin for LrMap<K, V>
impl<K, V> UnwindSafe for LrMap<K, V>
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