pub struct EntityListNodeHead<I: IPoliciedID> {
pub prev: Option<I>,
pub next: Option<I>,
}Expand description
Lightweight head metadata stored on each list node.
This small struct holds the previous and next node IDs for a node that participates in either a linked list or a ring list. It is intended to be embedded in entity storage so that list linkage does not require separate allocation.
The prev/next options are None when the node is detached. In the
ring-list sentinel case both fields point to the sentinel itself.
Fields§
§prev: Option<I>Previous node ID, if any.
next: Option<I>Next node ID, if any.
Implementations§
Source§impl<I: IPoliciedID> EntityListNodeHead<I>
impl<I: IPoliciedID> EntityListNodeHead<I>
Trait Implementations§
Source§impl<I: Clone + IPoliciedID> Clone for EntityListNodeHead<I>
impl<I: Clone + IPoliciedID> Clone for EntityListNodeHead<I>
Source§fn clone(&self) -> EntityListNodeHead<I>
fn clone(&self) -> EntityListNodeHead<I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I: Debug + IPoliciedID> Debug for EntityListNodeHead<I>
impl<I: Debug + IPoliciedID> Debug for EntityListNodeHead<I>
Source§impl<I: PartialEq + IPoliciedID> PartialEq for EntityListNodeHead<I>
impl<I: PartialEq + IPoliciedID> PartialEq for EntityListNodeHead<I>
impl<I: Copy + IPoliciedID> Copy for EntityListNodeHead<I>
impl<I: Eq + IPoliciedID> Eq for EntityListNodeHead<I>
impl<I: IPoliciedID> StructuralPartialEq for EntityListNodeHead<I>
Auto Trait Implementations§
impl<I> Freeze for EntityListNodeHead<I>where
I: Freeze,
impl<I> RefUnwindSafe for EntityListNodeHead<I>where
I: RefUnwindSafe,
impl<I> Send for EntityListNodeHead<I>where
I: Send,
impl<I> Sync for EntityListNodeHead<I>where
I: Sync,
impl<I> Unpin for EntityListNodeHead<I>where
I: Unpin,
impl<I> UnwindSafe for EntityListNodeHead<I>where
I: 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