Enum lrpar::parser::ParseRepair
source · pub enum ParseRepair<StorageT> {
Insert(TIdx<StorageT>),
Delete(Lexeme<StorageT>),
Shift(Lexeme<StorageT>),
}
Expand description
After a parse error is encountered, the parser attempts to find a way of recovering. Each entry
in the sequence of repairs is represented by a ParseRepair
.
Variants
Insert(TIdx<StorageT>)
Insert a Symbol::Token
.
Delete(Lexeme<StorageT>)
Delete a symbol.
Shift(Lexeme<StorageT>)
Shift a symbol.
Trait Implementations
sourceimpl<StorageT: Clone> Clone for ParseRepair<StorageT>
impl<StorageT: Clone> Clone for ParseRepair<StorageT>
sourcefn clone(&self) -> ParseRepair<StorageT>
fn clone(&self) -> ParseRepair<StorageT>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<StorageT: Debug> Debug for ParseRepair<StorageT>
impl<StorageT: Debug> Debug for ParseRepair<StorageT>
sourceimpl<StorageT: PartialEq> PartialEq<ParseRepair<StorageT>> for ParseRepair<StorageT>
impl<StorageT: PartialEq> PartialEq<ParseRepair<StorageT>> for ParseRepair<StorageT>
sourcefn eq(&self, other: &ParseRepair<StorageT>) -> bool
fn eq(&self, other: &ParseRepair<StorageT>) -> bool
impl<StorageT> StructuralPartialEq for ParseRepair<StorageT>
Auto Trait Implementations
impl<StorageT> RefUnwindSafe for ParseRepair<StorageT>where
StorageT: RefUnwindSafe,
impl<StorageT> Send for ParseRepair<StorageT>where
StorageT: Send,
impl<StorageT> Sync for ParseRepair<StorageT>where
StorageT: Sync,
impl<StorageT> Unpin for ParseRepair<StorageT>where
StorageT: Unpin,
impl<StorageT> UnwindSafe for ParseRepair<StorageT>where
StorageT: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more