Trait cellumina::rule::Rule

source ·
pub trait Rule: Debug {
    // Required method
    fn transform(&self, grid: &mut CellGrid);
}
Expand description

A rule describes a transition from one state of a cellular automaton to the next.

Required Methods§

source

fn transform(&self, grid: &mut CellGrid)

Transforms the passed cell grid according to this transformation rule. Transformation happens in-place.

Implementors§