pub enum ErrorKind {
SyntaxError,
EndOfFile,
}Expand description
A list of possible errors that may occur during parsing.
Variants§
SyntaxError
A general syntax error, if this error is thrown, it is guaranteed that the parser will have emitted a diagnostic message.
EndOfFile
Returned when there is no tokens left in the lexer that the parser uses. The parser will not throw a diagnostic message if this error is found.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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