Type Alias EvolveFunction

Source
pub type EvolveFunction<'a, S, E> = Box<dyn Fn(&S, &E) -> S + Send + Sync + 'a>;
Expand description

The EvolveFunction function is used to evolve the state based on the current state and the event.

Aliased Typeยง

struct EvolveFunction<'a, S, E>(/* private fields */);