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>

source

pub fn prev_in_list(&self) -> Option<E>

source

pub fn next_in_list(&self) -> Option<E>

Trait Implementations§

source§

impl<E: Clone + Entity<Def = Self>, D: Clone> Clone for EntityListNode<E, D>

source§

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)

Performs copy-assignment from source. Read more
source§

impl<E: Entity<Def = Self>, D> DerefMut for EntityListNode<E, D>

source§

fn deref_mut(&mut self) -> &mut D

Mutably dereferences the value.
source§

impl<E: Entity<Def = Self>, D> From<D> for EntityListNode<E, D>

source§

fn from(inner_def: D) -> Self

Converts to this type from the input type.
source§

impl<E: Entity<Def = Self>, D> Deref for EntityListNode<E, D>

§

type Target = D

The resulting type after dereferencing.
source§

fn deref(&self) -> &D

Dereferences the value.

Auto Trait Implementations§

§

impl<E, D> RefUnwindSafe for EntityListNode<E, D>

§

impl<E, D> Send for EntityListNode<E, D>
where D: Send, E: Send,

§

impl<E, D> Sync for EntityListNode<E, D>
where D: Sync, E: Sync,

§

impl<E, D> Unpin for EntityListNode<E, D>
where D: Unpin, E: Unpin,

§

impl<E, D> UnwindSafe for EntityListNode<E, D>
where D: UnwindSafe, E: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.