Struct cellular_lib::cellular_automata::UsizeWrapper
source · pub struct UsizeWrapper { /* private fields */ }
Expand description
UsizeWrapper is a wrapper for usize satisfying certain traits, such as From::
Trait Implementations
sourceimpl<'a> CellularAutomata<'a, UsizeWrapper> for StaticCellularAutomata<'a>
impl<'a> CellularAutomata<'a, UsizeWrapper> for StaticCellularAutomata<'a>
sourcefn new() -> StaticCellularAutomata<'a>
fn new() -> StaticCellularAutomata<'a>
Function new creates a new, empty cellular automata
sourcefn input_handler(
grid: &mut Grid<'_, UsizeWrapper>,
reader: &Reader,
printer: &Printer
)
fn input_handler(
grid: &mut Grid<'_, UsizeWrapper>,
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<'_, UsizeWrapper>, printer: &Printer)
fn output_handler(grid: &Grid<'_, UsizeWrapper>, printer: &Printer)
Function output_handler takes a grid and a printer and prints out something, according to the data of the grid.
sourceimpl Clone for UsizeWrapper
impl Clone for UsizeWrapper
sourcefn clone(&self) -> UsizeWrapper
fn clone(&self) -> UsizeWrapper
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Display for UsizeWrapper
impl Display for UsizeWrapper
Auto Trait Implementations
impl RefUnwindSafe for UsizeWrapper
impl Send for UsizeWrapper
impl Sync for UsizeWrapper
impl Unpin for UsizeWrapper
impl UnwindSafe for UsizeWrapper
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