pub trait StateGenerator {
type State;
// Required methods
fn next_initial(&mut self) -> Self::State;
fn next_final(&mut self) -> Self::State;
fn disable_final(&mut self) -> &mut Self;
fn enable_final(&mut self) -> &mut Self;
}
Required Associated Types§
Required Methods§
fn next_initial(&mut self) -> Self::State
fn next_final(&mut self) -> Self::State
fn disable_final(&mut self) -> &mut Self
fn enable_final(&mut self) -> &mut Self
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.