1 2 3 4 5 6 7 8 9 10
use super::super::evolution::strategy::EvolutionStrategy; pub trait Cell<T>: Sync + Send { fn new_from_state(state: T) -> Self where Self: Sized; fn state(&self) -> &T; fn set_state(&mut self, new_state: T); // fn evolution_strategy(&self) -> &dyn EvolutionStrategy<T>; }