Macro microstate::microstate [] [src]

macro_rules! microstate {
    (
      $machine:ident { $initial:ident }
      states { $($states:ident),* }

      $($meth:ident {
          $($from:ident => $to:ident)*
      })*
  ) => { ... };
}

Create a new state machine

It takes a name, the initial value, all possible states and the transitions.

See the main documentation for a proper example.