Macro apparat::build_wrapper [−][src]
macro_rules! build_wrapper { ( states: [$state1:ident, $($state:ident),* $(,)*], wrapper: $wrapper:ident, context: $context:ty, event: $event:ty, output: $output:ty $(,)* ) => { ... }; }
Expand description
Generate an enum that wraps all provided state types. Additionally all
necessary traits are implemented for it, so the wrapper can be used within
an Apparat
state machine.