pub enum LexerError {
UnexpectedCharacter {
position: usize,
character: char,
},
UnterminatedString {
position: usize,
},
UnterminatedRegex {
position: usize,
},
UnexpectedEndOfInput,
UnicodeOutOfRange,
}
Variants§
Trait Implementations§
Source§impl Debug for LexerError
impl Debug for LexerError
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 LexerError
impl RefUnwindSafe for LexerError
impl Send for LexerError
impl Sync for LexerError
impl Unpin for LexerError
impl UnwindSafe for LexerError
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