pub enum RecoverySite {
ArgList,
ArraySubscript,
HashSubscript,
PostfixChain,
InfixRhs,
}Expand description
Where in the parse tree a recovery was performed.
Used by ParseError::Recovered to describe the syntactic context in which
the parser applied a recovery strategy. LSP providers use this to decide
which features can still be offered after a recovery.
Variants§
ArgList
Inside a parenthesised argument list (...).
ArraySubscript
Inside an array subscript [...].
HashSubscript
Inside a hash subscript {...}.
PostfixChain
After a -> dereference arrow (postfix chain).
InfixRhs
After a binary infix operator (right-hand side missing).
Trait Implementations§
Source§impl Clone for RecoverySite
impl Clone for RecoverySite
Source§fn clone(&self) -> RecoverySite
fn clone(&self) -> RecoverySite
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 RecoverySite
impl Debug for RecoverySite
Source§impl PartialEq for RecoverySite
impl PartialEq for RecoverySite
impl StructuralPartialEq for RecoverySite
Auto Trait Implementations§
impl Freeze for RecoverySite
impl RefUnwindSafe for RecoverySite
impl Send for RecoverySite
impl Sync for RecoverySite
impl Unpin for RecoverySite
impl UnsafeUnpin for RecoverySite
impl UnwindSafe for RecoverySite
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