pub struct Automaton { /* private fields */ }
Expand description

Represents the automaton of a lexer Binary data structure of lexers: u32: number of entries in the states index table – states offset table each entry is of the form: u32: offset of the state from the beginning of the states table in number of u16 – states table

Implementations§

Initializes a new automaton from the given binary data

Gets the number of states in the automaton

Get the data of the specified state

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 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.