pub enum TokenizerError {
Show 13 variants
LexerError(LexerError),
StrLitDecodeError(StrLitDecodeError),
InternalError,
IncorrectInput,
NotAllowedInThisContext(&'static str),
UnexpectedEof,
ExpectStrLit,
ExpectIntLit,
ExpectFloatLit,
ExpectIdent,
ExpectNamedIdent(String),
ExpectChar(char, &'static str),
ExpectAnyChar(Vec<char>),
}
Variants§
LexerError(LexerError)
StrLitDecodeError(StrLitDecodeError)
InternalError
IncorrectInput
NotAllowedInThisContext(&'static str)
UnexpectedEof
ExpectStrLit
ExpectIntLit
ExpectFloatLit
ExpectIdent
ExpectNamedIdent(String)
ExpectChar(char, &'static str)
ExpectAnyChar(Vec<char>)
Trait Implementations§
source§impl Debug for TokenizerError
impl Debug for TokenizerError
source§impl Display for TokenizerError
impl Display for TokenizerError
source§impl Error for TokenizerError
impl Error for TokenizerError
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 From<LexerError> for TokenizerError
impl From<LexerError> for TokenizerError
source§fn from(source: LexerError) -> Self
fn from(source: LexerError) -> Self
Converts to this type from the input type.
source§impl From<StrLitDecodeError> for TokenizerError
impl From<StrLitDecodeError> for TokenizerError
source§fn from(source: StrLitDecodeError) -> Self
fn from(source: StrLitDecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TokenizerError
impl RefUnwindSafe for TokenizerError
impl Send for TokenizerError
impl Sync for TokenizerError
impl Unpin for TokenizerError
impl UnwindSafe for TokenizerError
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