pub struct WriteGuard<'a, V> { /* private fields */ }Expand description
An RAII write guard returned by the get_mut methods of the synchronous
containers (SyncHashMap, SyncBtreeMap, SyncVec, SyncIndexMap).
It holds the writer lock (and the writing flag) until dropped, so no
reader or writer can touch the value while the guard is alive.
Trait Implementations§
Source§impl<'a, V: Debug> Debug for WriteGuard<'a, V>
impl<'a, V: Debug> Debug for WriteGuard<'a, V>
Source§impl<'a, V> Deref for WriteGuard<'a, V>
impl<'a, V> Deref for WriteGuard<'a, V>
Source§impl<'a, V> DerefMut for WriteGuard<'a, V>
impl<'a, V> DerefMut for WriteGuard<'a, V>
Source§impl<'a, V: Display> Display for WriteGuard<'a, V>
impl<'a, V: Display> Display for WriteGuard<'a, V>
impl<'a, V: Eq> Eq for WriteGuard<'a, V>
Auto Trait Implementations§
impl<'a, V> !RefUnwindSafe for WriteGuard<'a, V>
impl<'a, V> !Send for WriteGuard<'a, V>
impl<'a, V> !UnwindSafe for WriteGuard<'a, V>
impl<'a, V> Freeze for WriteGuard<'a, V>
impl<'a, V> Sync for WriteGuard<'a, V>where
V: Sync,
impl<'a, V> Unpin for WriteGuard<'a, V>
impl<'a, V> UnsafeUnpin for WriteGuard<'a, 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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.