Struct ress::Tokenizer[][src]

pub struct Tokenizer<'a> { /* fields omitted */ }
Expand description

This structure will perform the low level tokenization before the Scanner provides additional context

Implementations

Create a new tokenizer using the provided string reference to create a JsBuffer

Get the next raw token from the js text

get the next regex token from the js text, providing the lenth of the already consumed token (this will be either 1 or 2)

note: this should only be used after first getting / or /= from the next method.

Skip any whitespace that might be coming up

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

Performs the conversion.

Performs the conversion.

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.