pub struct DefaultParser<'a> { /* private fields */ }

Implementations§

Constructor that create a parser from the source code

Consume all the whitespace

Trait Implementations§

Peek the nth token, not including whitespace and comments

Consume the current token

Reports an error at the current token location

Can only be called by Self::start_node
Can only be called by Node::drop
return true if experimental parser feature should be activated
Enter a new node. The node is going to be finished when The return value of this function is dropped Read more
Same as nth(0)
Consume the token if it has the right kind, otherwise report a syntax error. Returns true if the token was consumed. Read more
If the token if of this type, consume it and return true, otherwise return false
consume everything until reaching a token of this kind

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.