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

Take the ownership of the state, and return the state after application of the action

Implementors