[][src]Trait minutiae::universe::Universe

pub trait Universe<C: CellState, E: EntityState<C>, M: MutEntityState>: Default {
    fn get_cell(&self, coord: usize) -> Option<Cow<Cell<C>>>;
unsafe fn get_cell_unchecked(&self, coord: usize) -> Cow<Cell<C>>;
fn set_cell(&mut self, coord: usize, new_state: C);
fn set_cell_unchecked(&mut self, coord: usize, new_state: C);
fn get_entities<'a>(&'a self) -> &'a EntityContainer<C, E, M>;
fn get_entities_mut<'a>(&'a mut self) -> &'a mut EntityContainer<C, E, M>;
fn get_cells<'a>(&'a self) -> &'a [Cell<C>];
fn get_cells_mut<'a>(&'a mut self) -> &'a mut [Cell<C>];
fn empty() -> Self; }

Required methods

fn get_cell(&self, coord: usize) -> Option<Cow<Cell<C>>>

unsafe fn get_cell_unchecked(&self, coord: usize) -> Cow<Cell<C>>

fn set_cell(&mut self, coord: usize, new_state: C)

fn set_cell_unchecked(&mut self, coord: usize, new_state: C)

fn get_entities<'a>(&'a self) -> &'a EntityContainer<C, E, M>

fn get_entities_mut<'a>(&'a mut self) -> &'a mut EntityContainer<C, E, M>

fn get_cells<'a>(&'a self) -> &'a [Cell<C>]

fn get_cells_mut<'a>(&'a mut self) -> &'a mut [Cell<C>]

fn empty() -> Self

Loading content...

Implementors

impl<C: CellState, E: EntityState<C>, M: MutEntityState> Universe<C, E, M> for Universe2D<C, E, M>[src]

Loading content...