Struct lalrpop_util::ErrorRecovery
source · pub struct ErrorRecovery<L, T, E> {
pub error: ParseError<L, T, E>,
pub dropped_tokens: Vec<(L, T, L)>,
}
Fields§
§error: ParseError<L, T, E>
§dropped_tokens: Vec<(L, T, L)>
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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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 · 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: PartialEq, T: PartialEq, E: PartialEq> PartialEq<ErrorRecovery<L, T, E>> for ErrorRecovery<L, T, E>
impl<L: PartialEq, T: PartialEq, E: PartialEq> PartialEq<ErrorRecovery<L, T, E>> for ErrorRecovery<L, T, E>
source§fn eq(&self, other: &ErrorRecovery<L, T, E>) -> bool
fn eq(&self, other: &ErrorRecovery<L, T, E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<L: PartialOrd, T: PartialOrd, E: PartialOrd> PartialOrd<ErrorRecovery<L, T, E>> for ErrorRecovery<L, T, E>
impl<L: PartialOrd, T: PartialOrd, E: PartialOrd> PartialOrd<ErrorRecovery<L, T, E>> for ErrorRecovery<L, T, E>
source§fn partial_cmp(&self, other: &ErrorRecovery<L, T, E>) -> Option<Ordering>
fn partial_cmp(&self, other: &ErrorRecovery<L, T, E>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<L: Eq, T: Eq, E: Eq> Eq for ErrorRecovery<L, T, E>
impl<L, T, E> StructuralEq for ErrorRecovery<L, T, E>
impl<L, T, E> StructuralPartialEq for ErrorRecovery<L, T, E>
Auto Trait Implementations§
impl<L, T, E> RefUnwindSafe for ErrorRecovery<L, T, E>where E: RefUnwindSafe, L: RefUnwindSafe, T: RefUnwindSafe,
impl<L, T, E> Send for ErrorRecovery<L, T, E>where E: Send, L: Send, T: Send,
impl<L, T, E> Sync for ErrorRecovery<L, T, E>where E: Sync, L: Sync, T: Sync,
impl<L, T, E> Unpin for ErrorRecovery<L, T, E>where E: Unpin, L: Unpin, T: Unpin,
impl<L, T, E> UnwindSafe for ErrorRecovery<L, T, E>where E: UnwindSafe, L: UnwindSafe, T: UnwindSafe,
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