pub type LexError<'a> = Err<Error<InputSpan<'a>>>;
Aliased Type§
pub enum LexError<'a> {
Incomplete(Needed),
Error(Error<LocatedSpan<&'a str, Arc<String>>>),
Failure(Error<LocatedSpan<&'a str, Arc<String>>>),
}
Variants§
Incomplete(Needed)
There was not enough data
Error(Error<LocatedSpan<&'a str, Arc<String>>>)
The parser had an error (recoverable)
Failure(Error<LocatedSpan<&'a str, Arc<String>>>)
The parser had an unrecoverable error: we got to the right branch and we know other branches won’t work, so backtrack as fast as possible