pub trait StateTrait {
// Required method
fn to_state(self) -> State;
}Expand description
Trait to conveniently build a State from one of the possible states
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".