Trait StateGenerator

Source
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§

Source

fn next_initial(&mut self) -> Self::State

Source

fn next_final(&mut self) -> Self::State

Source

fn disable_final(&mut self) -> &mut Self

Source

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.

Implementors§