[][src]Trait minutiae::engine::iterator::EntityIterator

pub trait EntityIterator<C: CellState, E: EntityState<C>, M: MutEntityState> {
    fn visit(
        &mut self,
        entities: &[Vec<Entity<C, E, M>>],
        entity_meta: &HashSet<usize>
    ) -> Option<(usize, usize)>; }

Visits the entities of a universe in a particular order, returning the index of the cell the entity inhabits as well as the index of the entity within that cell (since there can be multiple entities in one cell).

Required methods

fn visit(
    &mut self,
    entities: &[Vec<Entity<C, E, M>>],
    entity_meta: &HashSet<usize>
) -> Option<(usize, usize)>

Loading content...

Implementors

impl<C: CellState, E: EntityState<C>, M: MutEntityState> EntityIterator<C, E, M> for SerialEntityIterator<C, E>[src]

Loading content...