pub trait Rule: Debug { // Required method fn transform(&self, grid: &mut CellGrid); }
A rule describes a transition from one state of a cellular automaton to the next.
Transforms the passed cell grid according to this transformation rule. Transformation happens in-place.