pub struct BasicDriver<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA>> { /* private fields */ }Expand description
Simplest implementation of a Driver. Starts an infinite loop that steps the simulation’s engine forever.
Implementations§
Source§impl<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA>> BasicDriver<C, E, M, CA, EA, N>
impl<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA>> BasicDriver<C, E, M, CA, EA, N>
pub fn new() -> BasicDriver<C, E, M, CA, EA, N>
Trait Implementations§
Source§impl<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA>> Driver<C, E, M, CA, EA, N> for BasicDriver<C, E, M, CA, EA, N>
impl<C: CellState, E: EntityState<C>, M: MutEntityState, CA: CellAction<C>, EA: EntityAction<C, E>, N: Engine<C, E, M, CA, EA>> Driver<C, E, M, CA, EA, N> for BasicDriver<C, E, M, CA, EA, N>
Auto Trait Implementations§
impl<C, E, M, CA, EA, N> Freeze for BasicDriver<C, E, M, CA, EA, N>
impl<C, E, M, CA, EA, N> RefUnwindSafe for BasicDriver<C, E, M, CA, EA, N>where
C: RefUnwindSafe,
E: RefUnwindSafe,
M: RefUnwindSafe,
CA: RefUnwindSafe,
EA: RefUnwindSafe,
N: RefUnwindSafe,
impl<C, E, M, CA, EA, N> Send for BasicDriver<C, E, M, CA, EA, N>
impl<C, E, M, CA, EA, N> Sync for BasicDriver<C, E, M, CA, EA, N>
impl<C, E, M, CA, EA, N> Unpin for BasicDriver<C, E, M, CA, EA, N>
impl<C, E, M, CA, EA, N> UnwindSafe for BasicDriver<C, E, M, CA, EA, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more