pub enum RecoveryKind {
InsertedCloser,
MissingOperand,
TruncatedChain,
InferredSemicolon,
}Expand description
What kind of recovery was applied at a RecoverySite.
Pairs with RecoverySite in ParseError::Recovered to describe the
exact repair the parser made. This information lets consumers (e.g. LSP
providers) understand the confidence level of the resulting AST region.
Variants§
InsertedCloser
A synthetic closing delimiter () or ]) was inferred.
MissingOperand
A [NodeKind::MissingExpression] placeholder was inserted.
TruncatedChain
A postfix chain was cut short due to a missing continuation.
InferredSemicolon
A statement boundary (;) was inferred from context.
Trait Implementations§
Source§impl Clone for RecoveryKind
impl Clone for RecoveryKind
Source§fn clone(&self) -> RecoveryKind
fn clone(&self) -> RecoveryKind
Returns a duplicate 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
Source§impl PartialEq for RecoveryKind
impl PartialEq for RecoveryKind
impl StructuralPartialEq 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 UnsafeUnpin 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