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 more