pub struct MapRefMut<'a, K, V> { /* private fields */ }
Expand description
A mutable reference to a key-value pair in a crate::ShardMap
.
Holds an exclusive lock on the shard associated with the key. Dropping this reference will release the lock.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V> Freeze for MapRefMut<'a, K, V>
impl<'a, K, V> RefUnwindSafe for MapRefMut<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> !Send for MapRefMut<'a, K, V>
impl<'a, K, V> Sync for MapRefMut<'a, K, V>
impl<'a, K, V> Unpin for MapRefMut<'a, K, V>
impl<'a, K, V> !UnwindSafe for MapRefMut<'a, 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