struct Entry<T> {
item: Option<T>,
next: NonZeroU32,
prev: NonZeroU32,
}Fields§
§item: Option<T>§next: NonZeroU32The next item in the list (possibly itself).
When item is None, next points ot the next free token in the slab.
prev: NonZeroU32The previous item in the list (possibly itself).
Unused if item is None.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Entry<T>where
T: Freeze,
impl<T> RefUnwindSafe for Entry<T>where
T: RefUnwindSafe,
impl<T> Send for Entry<T>where
T: Send,
impl<T> Sync for Entry<T>where
T: Sync,
impl<T> Unpin for Entry<T>where
T: Unpin,
impl<T> UnwindSafe for Entry<T>where
T: UnwindSafe,
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