Macro sm::sm[][src]

macro_rules! sm {
    (
        $name:ident { $($state:ident),+ $(,)* }

        $($event:ident {
            $($from:ident => $to:ident)+
        })*
    ) => { ... };
    (@recurse ($state:ident, $($other:ident),+), ($($old:ident),*)) => { ... };
    (@recurse ($state:ident), ($($old:ident),+)) => { ... };
}

Generate the declaratively described state machine diagram.

See the main crate documentation for more details.