pub enum LexErrorType {
UnexpectedToken,
UnterminatedString,
UnterminatedIdentifierString,
InvalidUnicodeCodePoint(u32),
InvalidNaNPayload(u64),
}Expand description
Represents a lexer error.
Variants§
UnexpectedToken
Unexpected token.
UnterminatedString
Unterminated string.
UnterminatedIdentifierString
Unterminated identifier string.
InvalidUnicodeCodePoint(u32)
Invalid unicode codepoint.
InvalidNaNPayload(u64)
Invalid NaN payload bits
Trait Implementations§
Source§impl Clone for LexErrorType
impl Clone for LexErrorType
Source§fn clone(&self) -> LexErrorType
fn clone(&self) -> LexErrorType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LexErrorType
impl Debug for LexErrorType
Source§impl PartialEq for LexErrorType
impl PartialEq for LexErrorType
impl StructuralPartialEq for LexErrorType
Auto Trait Implementations§
impl Freeze for LexErrorType
impl RefUnwindSafe for LexErrorType
impl Send for LexErrorType
impl Sync for LexErrorType
impl Unpin for LexErrorType
impl UnwindSafe for LexErrorType
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