Struct ress::ManualScanner[][src]

pub struct ManualScanner<'a> {
    pub stream: Tokenizer<'a>,
    pub eof: bool,
    pub pending_new_line: bool,
    pub last_skipped_whitespace: usize,
    pub new_line_count: usize,
    // some fields omitted
}

Fields

stream: Tokenizer<'a>eof: boolpending_new_line: boollast_skipped_whitespace: usizenew_line_count: usize

Implementations

Skip any upcoming comments to get the next valid js token

Get a copy of the scanner’s current state

Set the scanner’s current state to the state provided

Get the next token as a regular expression. The previous token should have been / or /=,

Get a string for any given span

Get a &str for any given span

Get the line/column pair for any given byte index

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.