Macro sfsm::is_state [−][src]
is_state!() { /* proc-macro */ }
Checks if the the state (as example returned by peek_state) is in the state to test.
ⓘ
let current_state = sfsm.peek_state(); assert!(is_state!(current_state, NameOfTheSfsm, DesiredState<AndType>));