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: 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: Eq, T: Eq, E: Eq> Eq for ErrorRecovery<L, T, E>
impl<L, T, E> 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> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)