Type Alias fmodel_rust::DecideFunction

source ·
pub type DecideFunction<'a, C, S, E> = Box<dyn Fn(&C, &S) -> Vec<E> + Send + Sync + 'a>;
Expand description

The DecideFunction function is used to decide which events to produce based on the command and the current state.

Aliased Type§

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

Trait Implementations§

1.0.0 · source§

impl<T, A> Deref for Box<T, A>where A: Allocator, T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.