Type Alias lalrpop_util::state_machine::ErrorRecovery
source · pub type ErrorRecovery<D> = ErrorRecovery<Location<D>, Token<D>, Error<D>>;
Aliased Type§
struct ErrorRecovery<D> {
pub error: ParseError<<D as ParserDefinition>::Location, <D as ParserDefinition>::Token, <D as ParserDefinition>::Error>,
pub dropped_tokens: Vec<(<D as ParserDefinition>::Location, <D as ParserDefinition>::Token, <D as ParserDefinition>::Location), Global>,
}
Fields§
§error: ParseError<<D as ParserDefinition>::Location, <D as ParserDefinition>::Token, <D as ParserDefinition>::Error>
§dropped_tokens: Vec<(<D as ParserDefinition>::Location, <D as ParserDefinition>::Token, <D as ParserDefinition>::Location), Global>
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