pub struct ErrorRecovery<L, T, E> {
pub error: ParseError<L, T, E>,
pub dropped_tokens: Vec<(L, T, L)>,
}Expand description
The error type of a recoverable parse error
For a full description of error recovery, see the lalrpop book.
This is the type of the variable resulting from binding a ! symbol in your lalrpop grammar.
Fields§
§error: ParseError<L, T, E>The parse error that was recovered from
dropped_tokens: Vec<(L, T, L)>The tokens discarded prior to resuming parsing
Trait Implementations§
Source§impl<L: Clone, T: Clone, E: Clone> Clone for ErrorRecovery<L, T, E>
impl<L: Clone, T: Clone, E: Clone> Clone for ErrorRecovery<L, T, E>
Source§fn clone(&self) -> ErrorRecovery<L, T, E>
fn clone(&self) -> ErrorRecovery<L, T, E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<L: Eq, T: Eq, E: Eq> Eq for ErrorRecovery<L, T, E>
Source§impl<L: Ord, T: Ord, E: Ord> Ord for ErrorRecovery<L, T, E>
impl<L: Ord, T: Ord, E: Ord> Ord for ErrorRecovery<L, T, E>
Source§fn cmp(&self, other: &ErrorRecovery<L, T, E>) -> Ordering
fn cmp(&self, other: &ErrorRecovery<L, T, E>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<L: PartialOrd, T: PartialOrd, E: PartialOrd> PartialOrd for ErrorRecovery<L, T, E>
impl<L: PartialOrd, T: PartialOrd, E: PartialOrd> PartialOrd for ErrorRecovery<L, T, E>
impl<L: PartialEq, T: PartialEq, E: PartialEq> StructuralPartialEq for ErrorRecovery<L, T, E>
Auto Trait Implementations§
impl<L, T, E> Freeze for ErrorRecovery<L, T, E>
impl<L, T, E> RefUnwindSafe for ErrorRecovery<L, T, E>
impl<L, T, E> Send for ErrorRecovery<L, T, E>
impl<L, T, E> Sync for ErrorRecovery<L, T, E>
impl<L, T, E> Unpin for ErrorRecovery<L, T, E>
impl<L, T, E> UnsafeUnpin for ErrorRecovery<L, T, E>
impl<L, T, E> UnwindSafe for ErrorRecovery<L, T, E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more