Enum lrpar::RecoveryKind
source · pub enum RecoveryKind {
CPCTPlus,
None,
}
Expand description
What recovery algorithm should be used when a syntax error is encountered?
Variants§
CPCTPlus
The CPCT+ algorithm from Diekmann/Tratt “Don’t Panic! Better, Fewer, Syntax Errors for LR Parsers”.
None
Don’t use error recovery: return as soon as the first syntax error is encountered.
Trait Implementations§
source§impl Clone for RecoveryKind
impl Clone for RecoveryKind
source§fn clone(&self) -> RecoveryKind
fn clone(&self) -> RecoveryKind
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 Debug for RecoveryKind
impl Debug for RecoveryKind
impl Copy for RecoveryKind
Auto Trait Implementations§
impl Freeze for RecoveryKind
impl RefUnwindSafe for RecoveryKind
impl Send for RecoveryKind
impl Sync for RecoveryKind
impl Unpin for RecoveryKind
impl UnwindSafe for RecoveryKind
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
)