Trait ralf::Reducer
[−]
[src]
pub trait Reducer<T> { fn process(&self, state: T, action: &Action) -> T; }
core logic trait, any structure that implement this trait can be used to manipulate state.
Required Methods
fn process(&self, state: T, action: &Action) -> T
Take the ownership of the state, and return the state after application of the action
Implementors
impl<T> Reducer<T> for LoggingReducer