Macro apparat::transitions [−][src]
macro_rules! transitions { ($($state_a:ident -> $state_b:ident :: $function:ident),* $(,)*) => { ... }; }
Expand description
Short hand for implementing the TransitionFrom
trait for multiple state
types, defining multiple transitions. This trait can easily be implemented
manually too, so this macro is just an optional tool for convenience. Find a
usage demo in the example “counter_transitions_macro”.