Struct sharded_slab::Entry
source · pub struct Entry<'a, T, C: Config = DefaultConfig> { /* private fields */ }
Expand description
A handle that allows access to an occupied entry in a Slab
.
While the guard exists, it indicates to the slab that the item the guard references is currently being accessed. If the item is removed from the slab while a guard exists, the removal will be deferred until all guards are dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, C = DefaultConfig> !RefUnwindSafe for Entry<'a, T, C>
impl<'a, T, C = DefaultConfig> !Send for Entry<'a, T, C>
impl<'a, T, C = DefaultConfig> !Sync for Entry<'a, T, C>
impl<'a, T, C> Unpin for Entry<'a, T, C>
impl<'a, T, C = DefaultConfig> !UnwindSafe for Entry<'a, T, C>
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