sovran_state

Trait Action

Source
pub trait Action<S: State>: Send + 'static {
    // Required method
    fn reduce(&self, state: S) -> S;
}
Expand description

Trait that all action types must implement. Actions should define how they transform the state.

Required Methods§

Source

fn reduce(&self, state: S) -> S

Implementors§