Enum minutiae::container::EntitySlot [] [src]

pub enum EntitySlot<C: CellState, E: EntityState<C>, M: MutEntityState> {
    Occupied {
        entity: Entity<C, E, M>,
        universe_index: usize,
    },
    Empty(usize),
}

Either holds an entity or a 'pointer' (in the form of an array index) of the next empty slot in the data structure. This functions somewhat similarly to a linked list.

Variants

Fields of Occupied

Trait Implementations

impl<C: Clone + CellState, E: Clone + EntityState<C>, M: Clone + MutEntityState> Clone for EntitySlot<C, E, M>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C: Debug + CellState, E: Debug + EntityState<C>, M: Debug + MutEntityState> Debug for EntitySlot<C, E, M>
[src]

Formats the value using the given formatter.

impl<C: CellState, E: EntityState<C>, M: MutEntityState> Send for EntitySlot<C, E, M> where
    E: Send,
    M: Send
[src]