pub enum ParseErrorReason {
UnexpectedToken(String),
FailedNode(Vec<ParseError>),
MissingToken(String),
}Expand description
An explanation for an error that occurred during parsing.
Variants§
UnexpectedToken(String)
The parser did not expect to see some token.
FailedNode(Vec<ParseError>)
Tree Sitter failed to parse a specific intermediate node. The underlying failures are in the vector.
MissingToken(String)
The parser expected a specific token, but it was not found.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseErrorReason
impl RefUnwindSafe for ParseErrorReason
impl Send for ParseErrorReason
impl Sync for ParseErrorReason
impl Unpin for ParseErrorReason
impl UnwindSafe for ParseErrorReason
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