[−][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]
pub fn new(
conf: Universe2DConf,
gen: &mut dyn Generator<C, E, M>
) -> Universe2D<C, E, M>
[src]
conf: Universe2DConf,
gen: &mut dyn Generator<C, E, M>
) -> Universe2D<C, E, M>
pub fn uninitialized() -> Self
[src]
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_size(&self) -> usize
[src]
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]
fn after_render(&mut self, universe: &mut Universe2D<C, E, M>)
[src]
fn before_render(&mut self, _: &mut U)
[src]
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Universe<C, E, M> for Universe2D<C, E, M>
[src]
fn get_cell(&self, coord: usize) -> Option<Cow<Cell<C>>>
[src]
unsafe fn get_cell_unchecked(&self, coord: usize) -> Cow<Cell<C>>
[src]
fn set_cell(&mut self, coord: usize, new_state: C)
[src]
fn set_cell_unchecked(&mut self, coord: usize, new_state: C)
[src]
fn get_entities<'a>(&'a self) -> &'a EntityContainer<C, E, M>
[src]
fn get_entities_mut<'a>(&'a mut self) -> &'a mut EntityContainer<C, E, M>
[src]
fn get_cells<'a>(&'a self) -> &'a [Cell<C>]
[src]
fn get_cells_mut<'a>(&'a mut self) -> &'a mut [Cell<C>]
[src]
fn empty() -> Self
[src]
impl<C: CellState, E: EntityState<C>, M: MutEntityState> Default for Universe2D<C, E, M>
[src]
impl<C: Clone + CellState, E: Clone + EntityState<C>, M: Clone + MutEntityState> Clone for Universe2D<C, E, M>
[src]
fn clone(&self) -> Universe2D<C, E, M>
[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,
C: Send,
E: Send,
impl<C, E, M> Unpin for Universe2D<C, E, M> where
C: Unpin,
E: Unpin,
M: Unpin,
C: Unpin,
E: Unpin,
M: Unpin,
impl<C, E, M> Sync for Universe2D<C, E, M> where
C: Sync,
E: Sync,
M: Sync,
C: Sync,
E: Sync,
M: Sync,
impl<C, E, M> UnwindSafe for Universe2D<C, E, M> where
C: UnwindSafe,
E: UnwindSafe,
M: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
M: UnwindSafe,
impl<C, E, M> RefUnwindSafe for Universe2D<C, E, M> where
C: RefUnwindSafe,
E: RefUnwindSafe,
M: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
M: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,