[][src]Struct minutiae::universe::Universe2D

pub struct Universe2D<C: CellState, E: EntityState<C>, M: MutEntityState> {
    pub conf: Universe2DConf,
    pub cells: Vec<Cell<C>>,
    pub entities: EntityContainer<C, E, M>,
}

Fields

conf: Universe2DConfcells: 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]

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 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]

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_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> Unpin for Universe2D<C, E, M> where
    C: Unpin,
    E: Unpin,
    M: Unpin

impl<C, E, M> Sync for Universe2D<C, E, M> where
    C: Sync,
    E: Sync,
    M: Sync

impl<C, E, M> UnwindSafe for Universe2D<C, E, M> where
    C: UnwindSafe,
    E: UnwindSafe,
    M: UnwindSafe

impl<C, E, M> RefUnwindSafe for Universe2D<C, E, M> where
    C: RefUnwindSafe,
    E: RefUnwindSafe,
    M: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.