pub struct EntryMut<'map, K, V, const N: usize = DEFAULT_PAGE_CAPACITY> { /* private fields */ }Expand description
A write guard for an entry in a BLinkMap.
The guard keeps its leaf write-locked. Mutations through DerefMut are
visible to later map operations when the guard is dropped.
§Locking
While this guard exists, every other operation targeting the same leaf is blocked—including reads. Drop it before calling back into the map. Acquiring multiple mutable guards in different orders across threads can deadlock.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'map, K, V, const N: usize = DEFAULT_PAGE_CAPACITY> !RefUnwindSafe for EntryMut<'map, K, V, N>
impl<'map, K, V, const N: usize = DEFAULT_PAGE_CAPACITY> !Send for EntryMut<'map, K, V, N>
impl<'map, K, V, const N: usize = DEFAULT_PAGE_CAPACITY> !UnwindSafe for EntryMut<'map, K, V, N>
impl<'map, K, V, const N: usize> Freeze for EntryMut<'map, K, V, N>where
ArcRwLockWriteGuard<RawRwLock, Node<K, V, N>>: Freeze,
PhantomData<&'map BLinkMap<K, V, N>>: Freeze,
impl<'map, K, V, const N: usize> Sync for EntryMut<'map, K, V, N>where
ArcRwLockWriteGuard<RawRwLock, Node<K, V, N>>: Sync,
PhantomData<&'map BLinkMap<K, V, N>>: Sync,
impl<'map, K, V, const N: usize> Unpin for EntryMut<'map, K, V, N>where
ArcRwLockWriteGuard<RawRwLock, Node<K, V, N>>: Unpin,
PhantomData<&'map BLinkMap<K, V, N>>: Unpin,
impl<'map, K, V, const N: usize> UnsafeUnpin for EntryMut<'map, K, V, N>where
ArcRwLockWriteGuard<RawRwLock, Node<K, V, N>>: UnsafeUnpin,
PhantomData<&'map BLinkMap<K, V, N>>: UnsafeUnpin,
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