pub enum Repair {
Insert(SymbolId),
Delete(SymbolId),
Shift,
}Expand description
A single repair action during error recovery.
Variants§
Insert(SymbolId)
Insert a terminal (by symbol ID).
Delete(SymbolId)
Delete a token (by symbol ID).
Shift
Shift the current token (free cost — not an edit).
Trait Implementations§
impl Eq for Repair
impl StructuralPartialEq for Repair
Auto Trait Implementations§
impl Freeze for Repair
impl RefUnwindSafe for Repair
impl Send for Repair
impl Sync for Repair
impl Unpin for Repair
impl UnsafeUnpin for Repair
impl UnwindSafe for Repair
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