pub type NomErr<'a> = Err<Error<&'a str>>;
enum NomErr<'a> { Incomplete(Needed), Error(Error<&'a str>), Failure(Error<&'a str>), }
There was not enough data
The parser had an error (recoverable)
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