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

The type of cells on the grid

Required Methods

This defines a rule for how cells in a 3x3 space transform into a new Cell in the center position of the new board.

Implementors