pub struct AutomatonState<'a> { /* private fields */ }
Expand description

Represents a state in the automaton of a lexer Binary data structure: u16: number of matched terminals u16: total number of transitions u16: number of non-cached transitions – matched terminals u16: context identifier u16: index of the matched terminal – cache: 256 entries u16: next state’s index for index of the entry – transitions each transition is of the form: u16: start of the range u16: end of the range u16: next state’s index

Implementations§

Gets the number of matched terminals in this state

Gets the i-th matched terminal in this state

Gets whether this state is a dead end (no more transition)

Gets the number of non-cached transitions in this state

Gets the target of the cached transition for the specified value

Gets the i-th non-cached transition in this state

Gets the target of a transition from this state on the specified value

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.