Trait Simulate

Source
pub trait Simulate<S>
where S: State,
{ // Required method fn simulate(state: &S, neighbor_states: &[&S]) -> S; }
Expand description

Trait that tells QDF how to simulate states of space.

Required Methods§

Source

fn simulate(state: &S, neighbor_states: &[&S]) -> S

Performs simulation of state based on neighbor states.

§Arguments
  • state - current state.
  • neighbor_states - current neighbor states.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<S> Simulate<S> for ()
where S: State,

Source§

fn simulate(state: &S, _: &[&S]) -> S

Implementors§