Macro mut_state_fn

Source
macro_rules! mut_state_fn {
    () => { ... };
    ($($move:ident)? |$t:ident| $expr:expr) => { ... };
    ($($move:ident)? |[$($x:pat),+]| $expr:expr) => { ... };
    ($($move:ident)? |$t:pat, [$($x:pat),+]| $expr:expr) => { ... };
    (|$t:ident, [$($x:ident),+], [$($x_:ident),+]| $expr:expr) => { ... };
}
Expand description

Constructs a MutStateFnMut object from a closure.

Depending on the provided closure signature, it wraps the closure with corresponding type, choosing between ConstantStateFnMut (note the absence of “Mut” before “State”), TimeMutStateFnMut, ODEMutStateFnMut, ODE2MutStateFnMut, and DDEMutStateFnMut.

See also crate::event_mut!, which uses [mut_state_fn!] internally.

See also [state_fn!]