pub enum ParserError {
UnexpectedToken(Token),
ExpectedToken(Token),
LexerError(LexerError),
}
Variants§
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§impl From<LexerError> for ParserError
impl From<LexerError> for ParserError
Source§fn from(err: LexerError) -> Self
fn from(err: LexerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParserError
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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