Trait fst::Automaton [] [src]

pub trait Automaton {
    type State: Copy;
    fn start(&self) -> Self::State;
    fn is_match(&self, state: Self::State) -> bool;
    fn accept(&self, state: Self::State, byte: u8) -> Option<Self::State>;
}

Associated Types

type State: Copy

Required Methods

fn start(&self) -> Self::State

fn is_match(&self, state: Self::State) -> bool

fn accept(&self, state: Self::State, byte: u8) -> Option<Self::State>

Implementors