pub enum LexError {
UnclosedCommentError,
UnclosedStringError,
UnclosedIdentError,
NewlineInIdentifier,
InvalidEscape(char),
InvalidUnicodeEscape(u32),
FloatParseError(<f64 as FromStr>::Err),
IntegerParseError(<i64 as FromStr>::Err),
UnrecognisedCharError(char),
}
Expand description
An enum representing different kinds of lexing errors
May be referenced in a ParseError
if the parsing failed due to a lexical error
Variants§
UnclosedCommentError
UnclosedStringError
UnclosedIdentError
NewlineInIdentifier
InvalidEscape(char)
InvalidUnicodeEscape(u32)
FloatParseError(<f64 as FromStr>::Err)
IntegerParseError(<i64 as FromStr>::Err)
UnrecognisedCharError(char)
Trait Implementations§
impl StructuralPartialEq for LexError
Auto Trait Implementations§
impl Freeze for LexError
impl RefUnwindSafe for LexError
impl Send for LexError
impl Sync for LexError
impl Unpin for LexError
impl UnwindSafe for LexError
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