Struct route_recognizer::nfa::State [] [src]

pub struct State<T> {
    pub index: usize,
    pub chars: CharacterClass,
    pub next_states: Vec<usize>,
    pub acceptance: bool,
    pub start_capture: bool,
    pub end_capture: bool,
    pub metadata: Option<T>,
}

Fields

index
chars
next_states
acceptance
start_capture
end_capture
metadata

Methods

impl<T> State<T>

fn new(index: usize, chars: CharacterClass) -> State<T>

Trait Implementations

impl<T> PartialEq for State<T>

fn eq(&self, other: &State<T>) -> bool

fn ne(&self, other: &Rhs) -> bool

Derived Implementations

impl<T: Clone> Clone for State<T>

fn clone(&self) -> State<T>

fn clone_from(&mut self, source: &Self)