pub struct Lexer<'input, Iter: Iterator<Item = char> + Clone, Token, State, Error, Wrapper> {
    pub __state: usize,
    pub __done: bool,
    pub __initial_state: usize,
    pub __iter: Peekable<Iter>,
    /* private fields */
}
Expand description

Common parts in lexers generated by lexgen.

Fields are used by lexgen-generated code and should not be used directly.

Fields

__state: usize__done: bool__initial_state: usize__iter: Peekable<Iter>

Implementations

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.