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
Occupied
Fields of Occupied
entity: Entity<C, E, M> | |
universe_index: usize |
Empty(usize)
Trait Implementations
impl<C: Clone + CellState, E: Clone + EntityState<C>, M: Clone + MutEntityState> Clone for EntitySlot<C, E, M>
[src]
fn clone(&self) -> EntitySlot<C, E, M>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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]
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Send for EntitySlot<C, E, M> where
E: Send,
M: Send,
[src]
E: Send,
M: Send,