pub struct ParseBuffer<'a> { /* private fields */ }
Expand description

A low-level buffer of tokens which represents a completely lexed file.

A ParseBuffer will immediately lex an entire file and then store all tokens internally. A ParseBuffer only used to pass to the top-level parse function.

Implementations

Creates a new ParseBuffer by lexing the given input completely.

Errors

Returns an error if input fails to lex.

Creates a new ParseBuffer by lexing the given input completely.

Errors

Returns an error if input fails to lex.

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.