#[repr(u32)]pub enum ParseErrorKind {
Recovered = 1,
Fatal = 2,
}Expand description
Indicates whether parsing can continue after an error.
Variants§
Recovered = 1
Parsing recovered to the next statement boundary.
In plain terms: this statement had a syntax error, but the parser was
still able to skip forward (usually to the next ;) and continue with
later statements.
The current statement can include Error AST nodes where invalid input
was skipped.
A partial AST may still be available for diagnostics.
Fatal = 2
Parsing could not recover for this statement/input.
In plain terms: the parser hit a syntax error and could not find a safe point to continue from.
No reliable tree is available, and callers should usually stop reading further results from this session.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
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 ParseErrorKind
impl Debug for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl Copy for ParseErrorKind
impl Eq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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