pub struct Elem<T> { /* private fields */ }Expand description
The fundamental node structure for a doubly-linked list.
This struct contains element metadata (links + generation/state) and user data.
The compact Slot type is used for links instead of full Index<T>, saving
8 bytes per element compared to storing full indices.
Trait Implementations§
impl<T: Eq> Eq for Elem<T>
Auto Trait Implementations§
impl<T> Freeze for Elem<T>where
T: Freeze,
impl<T> RefUnwindSafe for Elem<T>where
T: RefUnwindSafe,
impl<T> Send for Elem<T>where
T: Send,
impl<T> Sync for Elem<T>where
T: Sync,
impl<T> Unpin for Elem<T>where
T: Unpin,
impl<T> UnsafeUnpin for Elem<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Elem<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