[−][src]Struct minutiae::universe::Universe2D
Fields
conf: Universe2DConf
cells: Vec<Cell<C>>
entities: EntityContainer<C, E, M>
Methods
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Universe2D<C, E, M>
[src]
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Universe2D<C, E, M>
pub fn new(
conf: Universe2DConf,
gen: &mut dyn Generator<C, E, M>
) -> Universe2D<C, E, M>
[src]
pub fn new(
conf: Universe2DConf,
gen: &mut dyn Generator<C, E, M>
) -> Universe2D<C, E, M>
pub fn uninitialized() -> Self
[src]
pub fn uninitialized() -> Self
Creates a new shell universe without any defined logic designed for use in a hybrid client.
pub fn get_conf<'a>(&'a self) -> &'a Universe2DConf
[src]
pub fn get_conf<'a>(&'a self) -> &'a Universe2DConf
pub fn get_size(&self) -> usize
[src]
pub fn get_size(&self) -> usize
Trait Implementations
impl<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA, Universe2D<C, E, M>>> Middleware<C, E, M, CA, EA, Universe2D<C, E, M>, N> for GifRenderer<C, E, M>
[src]
impl<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA, Universe2D<C, E, M>>> Middleware<C, E, M, CA, EA, Universe2D<C, E, M>, N> for GifRenderer<C, E, M>
fn after_render(&mut self, universe: &mut Universe2D<C, E, M>)
[src]
fn after_render(&mut self, universe: &mut Universe2D<C, E, M>)
fn before_render(&mut self, _: &mut U)
[src]
fn before_render(&mut self, _: &mut U)
impl<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA, Universe2D<C, E, M>>> Middleware<C, E, M, CA, EA, Universe2D<C, E, M>, N> for CanvasRenderer<C, E, M>
[src]
impl<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA, Universe2D<C, E, M>>> Middleware<C, E, M, CA, EA, Universe2D<C, E, M>, N> for CanvasRenderer<C, E, M>
fn after_render(&mut self, universe: &mut Universe2D<C, E, M>)
[src]
fn after_render(&mut self, universe: &mut Universe2D<C, E, M>)
fn before_render(&mut self, _: &mut U)
[src]
fn before_render(&mut self, _: &mut U)
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Universe<C, E, M> for Universe2D<C, E, M>
[src]
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Universe<C, E, M> for Universe2D<C, E, M>
fn get_cell(&self, coord: usize) -> Option<Cow<Cell<C>>>
[src]
fn get_cell(&self, coord: usize) -> Option<Cow<Cell<C>>>
unsafe fn get_cell_unchecked(&self, coord: usize) -> Cow<Cell<C>>
[src]
unsafe fn get_cell_unchecked(&self, coord: usize) -> Cow<Cell<C>>
fn set_cell(&mut self, coord: usize, new_state: C)
[src]
fn set_cell(&mut self, coord: usize, new_state: C)
fn set_cell_unchecked(&mut self, coord: usize, new_state: C)
[src]
fn set_cell_unchecked(&mut self, coord: usize, new_state: C)
fn get_entities<'a>(&'a self) -> &'a EntityContainer<C, E, M>
[src]
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>
[src]
fn get_entities_mut<'a>(&'a mut self) -> &'a mut EntityContainer<C, E, M>
fn get_cells<'a>(&'a self) -> &'a [Cell<C>]
[src]
fn get_cells<'a>(&'a self) -> &'a [Cell<C>]
fn get_cells_mut<'a>(&'a mut self) -> &'a mut [Cell<C>]
[src]
fn get_cells_mut<'a>(&'a mut self) -> &'a mut [Cell<C>]
fn empty() -> Self
[src]
fn empty() -> Self
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Default for Universe2D<C, E, M>
[src]
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Default for Universe2D<C, E, M>
impl<C: Clone + CellState, E: Clone + EntityState<C>, M: Clone + MutEntityState> Clone for Universe2D<C, E, M>
[src]
impl<C: Clone + CellState, E: Clone + EntityState<C>, M: Clone + MutEntityState> Clone for Universe2D<C, E, M>
fn clone(&self) -> Universe2D<C, E, M>
[src]
fn clone(&self) -> Universe2D<C, E, M>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<C, E, M> Send for Universe2D<C, E, M> where
C: Send,
E: Send,
impl<C, E, M> Send for Universe2D<C, E, M> where
C: Send,
E: Send,
impl<C, E, M> Sync for Universe2D<C, E, M> where
C: Sync,
E: Sync,
M: Sync,
impl<C, E, M> Sync for Universe2D<C, E, M> where
C: Sync,
E: Sync,
M: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T