pub enum LexicalError {
Show 19 variants
Empty,
MalformedIdentifier,
BrokenIdentifierEncoding,
BrokenNumberEncoding,
MalformedFloatLiteral,
MalformedComplexLiteral,
MalformedStringLiteral,
MalformedCharacterLiteral,
UnknownCharacterLiteral,
IncompleteCharacterLiteral,
IllegalCharacter,
IllegalHexCharacter,
IllegalEscapeSequence,
IllegalEOL,
TokenNotYetSupported,
DivisionByZero,
ExactComplexNumberUnsupported,
UnknownDirective,
NumberExpected,
}
Variants§
Empty
MalformedIdentifier
BrokenIdentifierEncoding
BrokenNumberEncoding
MalformedFloatLiteral
MalformedComplexLiteral
MalformedStringLiteral
MalformedCharacterLiteral
UnknownCharacterLiteral
IncompleteCharacterLiteral
IllegalCharacter
IllegalHexCharacter
IllegalEscapeSequence
IllegalEOL
TokenNotYetSupported
DivisionByZero
ExactComplexNumberUnsupported
UnknownDirective
NumberExpected
Trait Implementations§
Source§impl Clone for LexicalError
impl Clone for LexicalError
Source§fn clone(&self) -> LexicalError
fn clone(&self) -> LexicalError
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 LexicalError
impl Debug for LexicalError
Source§impl Display for LexicalError
impl Display for LexicalError
Source§impl Error for LexicalError
impl Error for LexicalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Ord for LexicalError
impl Ord for LexicalError
Source§fn cmp(&self, other: &LexicalError) -> Ordering
fn cmp(&self, other: &LexicalError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LexicalError
impl PartialEq for LexicalError
Source§impl PartialOrd for LexicalError
impl PartialOrd for LexicalError
impl Copy for LexicalError
impl Eq for LexicalError
impl StructuralPartialEq for LexicalError
Auto Trait Implementations§
impl Freeze for LexicalError
impl RefUnwindSafe for LexicalError
impl Send for LexicalError
impl Sync for LexicalError
impl Unpin for LexicalError
impl UnwindSafe for LexicalError
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