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

Represents the output of a parser

Implementations§

Initialize a new parse result

Gets the grammar terminals

Gets the grammar variables

Gets the grammar virtuals

Gets the input text for this result

Gets whether this result denotes a successful parsing

Gets the collection of errors

Gets the token repository associated with this result

Gets the resulting AST

Gets the mutable data required for parsing

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.