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

Holds a stream of tokens.

Implementations

Constructs a new token stream from a String.

Peeks at the next character in the stream.

Advances the character stream.

Returns all tokens without consuming the tokenizer.

Checks whether or not the last token is a semicolon.

Lines that end with semicolons are not displayed.

Get the precedence of the next token.

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.