pub struct Parser<'src, Lexer: Lex<'src>> { /* private fields */ }
Consumes this parser and tries to parse a Program
.
This function returns a tuple of a Result<Program>
and a Vec<Error>
. Parsing can be
- successful:
(Some(Program), [])
- partially successful:
(Some(Program), [..errors])
- unsuccessful:
(Err(fatal_error), [..errors])
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.