pub trait StateEnum:
Debug
+ Clone
+ Copy
+ PartialEq
+ Eq { }Expand description
A flat list of all states in a state machine.
Autogenerated by moku in the machine_module as State.
§Example
For some machine:
Top
├─ Foo
│ └─ Bar
└─ Fizz
└─ BuzzThe StateEnum would be:
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum State {
Top,
Foo,
Bar,
Fizz,
Buzz,
}Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.