Enum cup::lexer::LexerError
source · pub enum LexerError {
MissingNumberBaseIdentifier,
FloatBaseIsNot10,
NumberParseError(String),
AssignmentIsNotAssignment,
ExpectedSingleChar,
InvalidStringInitialization,
ExpectedStringChar,
ExpectedEscapedChar,
}
Variants§
MissingNumberBaseIdentifier
FloatBaseIsNot10
NumberParseError(String)
AssignmentIsNotAssignment
ExpectedSingleChar
InvalidStringInitialization
ExpectedStringChar
ExpectedEscapedChar
Trait Implementations§
source§impl Debug for LexerError
impl Debug for LexerError
source§impl Display for LexerError
impl Display for LexerError
source§impl Error for LexerError
impl Error for LexerError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
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