Struct spirt::context::EntityListNode
source · pub struct EntityListNode<E: Entity<Def = Self>, D> {
prev: Option<E>,
next: Option<E>,
inner_def: D,
}
Expand description
EntityList<E>
node, containing the “intrusive” list links, and the rest of
the entity definition (the inner_def
field of type D
).
Fields are private to avoid arbitrary user interactions outside of special
methods and Deref
/DerefMut
.
Fields§
§prev: Option<E>
§next: Option<E>
§inner_def: D
Implementations§
source§impl<E: Entity<Def = Self>, D> EntityListNode<E, D>
impl<E: Entity<Def = Self>, D> EntityListNode<E, D>
pub fn prev_in_list(&self) -> Option<E>
pub fn next_in_list(&self) -> Option<E>
Trait Implementations§
source§impl<E: Clone + Entity<Def = Self>, D: Clone> Clone for EntityListNode<E, D>
impl<E: Clone + Entity<Def = Self>, D: Clone> Clone for EntityListNode<E, D>
source§fn clone(&self) -> EntityListNode<E, D>
fn clone(&self) -> EntityListNode<E, D>
Returns a copy 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<E: Entity<Def = Self>, D> DerefMut for EntityListNode<E, D>
impl<E: Entity<Def = Self>, D> DerefMut for EntityListNode<E, D>
source§impl<E: Entity<Def = Self>, D> From<D> for EntityListNode<E, D>
impl<E: Entity<Def = Self>, D> From<D> for EntityListNode<E, D>
Auto Trait Implementations§
impl<E, D> RefUnwindSafe for EntityListNode<E, D>where
D: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, D> Send for EntityListNode<E, D>
impl<E, D> Sync for EntityListNode<E, D>
impl<E, D> Unpin for EntityListNode<E, D>
impl<E, D> UnwindSafe for EntityListNode<E, D>where
D: UnwindSafe,
E: 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