State

Trait State 

Source
pub trait State {
    type Data: StateData;
    type Iter: Iterator<Item = usize>;

    // Required methods
    fn new() -> Self;
    fn etransition<'a>(&'a self) -> &'a Etrans;
    fn transition(&self, c: u8) -> Self::Iter;
    fn data(&self) -> Self::Data;
}

Required Associated Types§

Required Methods§

Source

fn new() -> Self

Source

fn etransition<'a>(&'a self) -> &'a Etrans

Source

fn transition(&self, c: u8) -> Self::Iter

Source

fn data(&self) -> Self::Data

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§