pub enum RecoveryStrategy {
SkipToken,
SkipToEndOfLine,
SyncToSafePoint,
InsertToken(SyntaxKind),
}Expand description
Error recovery strategy for the parser
Variants§
SkipToken
Skip the current token and continue
SkipToEndOfLine
Skip until end of line
SyncToSafePoint
Skip until a safe synchronization point
InsertToken(SyntaxKind)
Insert a synthetic token to fix the parse
Trait Implementations§
Source§impl Clone for RecoveryStrategy
impl Clone for RecoveryStrategy
Source§fn clone(&self) -> RecoveryStrategy
fn clone(&self) -> RecoveryStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RecoveryStrategy
Source§impl Debug for RecoveryStrategy
impl Debug for RecoveryStrategy
impl Eq for RecoveryStrategy
Source§impl PartialEq for RecoveryStrategy
impl PartialEq for RecoveryStrategy
Source§fn eq(&self, other: &RecoveryStrategy) -> bool
fn eq(&self, other: &RecoveryStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecoveryStrategy
Auto Trait Implementations§
impl Freeze for RecoveryStrategy
impl RefUnwindSafe for RecoveryStrategy
impl Send for RecoveryStrategy
impl Sync for RecoveryStrategy
impl Unpin for RecoveryStrategy
impl UnsafeUnpin for RecoveryStrategy
impl UnwindSafe for RecoveryStrategy
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