Trait gridsim::Rule
[−]
[src]
pub trait Rule { type Cell; fn rule(_: [[Self::Cell; 3]; 3]) -> Self::Cell; }
Defines a simulation for simple things like cellular automata.
Associated Types
type Cell
The type of cells on the grid
Required Methods
fn rule(_: [[Self::Cell; 3]; 3]) -> Self::Cell
This defines a rule for how cells in a 3x3 space transform into a new Cell in the center position of the new board.