pub struct StaticCellularAutomata<'a> { /* private fields */ }
Expand description

StaticCellularAutomata is an implementation of a static cellular automata (which remains the same)

Implementations

printer is the printer function

reader is the reader function

Trait Implementations

Function new creates a new, empty cellular automata
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)
Function output_handler takes a grid and a printer and prints out something, according to the data of the grid.
Function run runs the cellular automata

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.