Enum lalrpop_util::ParseError [−][src]
pub enum ParseError<L, T, E> { InvalidToken { location: L, }, UnrecognizedEOF { location: L, expected: Vec<String>, }, UnrecognizedToken { token: (L, T, L), expected: Vec<String>, }, ExtraToken { token: (L, T, L), }, User { error: E, }, }
Variants
Generated by the parser when it encounters a token (or EOF) it did not expect.
Generated by the parser when it encounters an EOF it did not expect.
Show fields
Generated by the parser when it encounters a token it did not expect.
Show fields
Generated by the parser when it encounters additional, unexpected tokens.
Custom error type.
Implementations
Trait Implementations
impl<L: PartialEq, T: PartialEq, E: PartialEq> PartialEq<ParseError<L, T, E>> for ParseError<L, T, E>
[src]
impl<L: PartialEq, T: PartialEq, E: PartialEq> PartialEq<ParseError<L, T, E>> for ParseError<L, T, E>
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<L: PartialOrd, T: PartialOrd, E: PartialOrd> PartialOrd<ParseError<L, T, E>> for ParseError<L, T, E>
[src]
impl<L: PartialOrd, T: PartialOrd, E: PartialOrd> PartialOrd<ParseError<L, T, E>> for ParseError<L, T, E>
[src]This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<L, T, E> RefUnwindSafe for ParseError<L, T, E> where
E: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<L, T, E> Send for ParseError<L, T, E> where
E: Send,
L: Send,
T: Send,
impl<L, T, E> Sync for ParseError<L, T, E> where
E: Sync,
L: Sync,
T: Sync,
impl<L, T, E> Unpin for ParseError<L, T, E> where
E: Unpin,
L: Unpin,
T: Unpin,
impl<L, T, E> UnwindSafe for ParseError<L, T, E> where
E: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more