pub fn simulation_step<M>(&mut self)
    where
        M: Simulate<S>,
    {
        let states = self.simulate_states::<M>();
        for (id, state) in states {
            self.spaces.get_mut(&id).unwrap().apply_state(state);
        }
    }
/// Performs simulation step (go through all platonic spaces and modifies its states based on
/// neighbor states). Actual state simulation is performed by your struct that implements
/// `Simulation` trait.
Performs simulation step (go through all platonic spaces and modifies its states based on
neighbor states). Actual state simulation is performed by your struct that implements
`Simulation` trait.
Performs simulation step ( go through all platonic spaces and modifies its states based on neighbor states ) . Actual state simulation is performed by your struct that implements ` Simulation ` trait .
pub fn simulation_step<M>(&mut self)
    where
        M: Simulate<S>,
    {
        let states = self.simulate_states::<M>();
        for (id, state) in states {
            self.spaces.get_mut(&id).unwrap().apply_state(state);
        }
    }
pub fn simulation_step < M > ( & mut self ) where M : Simulate < S > , { let states = self . simulate_states :: < M > ( ) ; for ( id , state ) in states { self . spaces . get_mut ( & id ) . unwrap ( ) . apply_state ( state ) ; } }
Performs simulation step (go through all platonic spaces and modifies its states based on
neighbor states).
Performs simulation step ( go through all platonic spaces and modifies its states based on neighbor states ) .
&mut self
&mut self