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> Freeze for EntityListNode<E, D>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more