pub struct DummyCellularAutomata<'a> { /* private fields */ }
Expand description
DummyCellularAutomata is just a dummy cellular automata, which simply prints “It works!”
Trait Implementations
sourceimpl<'a> CellularAutomata<'a, String> for DummyCellularAutomata<'a>
impl<'a> CellularAutomata<'a, String> for DummyCellularAutomata<'a>
sourcefn new() -> DummyCellularAutomata<'a>
fn new() -> DummyCellularAutomata<'a>
Function new creates a new, empty cellular automata
sourcefn input_handler(
_grid: &mut Grid<'_, String>,
_reader: &Reader,
printer: &Printer
)
fn input_handler(
_grid: &mut Grid<'_, String>,
_reader: &Reader,
printer: &Printer
)
Function input_handler takes the grid and a reader and modifies the grid according to what it reads. The printer argument is there just so the automata can prompt the user (if needed)
sourcefn output_handler(_grid: &Grid<'_, String>, printer: &Printer)
fn output_handler(_grid: &Grid<'_, String>, printer: &Printer)
Function output_handler takes a grid and a printer and prints out something, according to the data of the grid.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DummyCellularAutomata<'a>
impl<'a> Send for DummyCellularAutomata<'a>
impl<'a> Sync for DummyCellularAutomata<'a>
impl<'a> Unpin for DummyCellularAutomata<'a>
impl<'a> UnwindSafe for DummyCellularAutomata<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more