#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]pubenumParseError<L,T,E> {/// Generated by the parser when it encounters a token (or EOF) it did not
/// expect.
InvalidToken {
location: L
},/// Generated by the parser when it encounters a token (or EOF) it did not
/// expect.
UnrecognizedToken {/// If this is `Some`, then an unexpected token of type `T`
/// was observed, with a span given by the two `L` values. If
/// this is `None`, then EOF was observed when it was not
/// expected.
token:Option<(L, T, L)>,/// The set of expected tokens: these names are taken from the
/// grammar and hence may not necessarily be suitable for
/// presenting to the user.
expected:Vec<String>},/// Generated by the parser when it encounters additional,
/// unexpected tokens.
ExtraToken {
token:(L, T, L),},/// Custom error type.
User {
error: E,},}