Enum protobuf_support::lexer::tokenizer::TokenizerError
source · [−]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
sourceimpl Debug for TokenizerError
impl Debug for TokenizerError
sourceimpl Display for TokenizerError
impl Display for TokenizerError
sourceimpl Error for TokenizerError
impl Error for TokenizerError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<LexerError> for TokenizerError
impl From<LexerError> for TokenizerError
sourcefn from(source: LexerError) -> Self
fn from(source: LexerError) -> Self
Converts to this type from the input type.
sourceimpl From<StrLitDecodeError> for TokenizerError
impl From<StrLitDecodeError> for TokenizerError
sourcefn from(source: StrLitDecodeError) -> Self
fn from(source: StrLitDecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for TokenizerError
impl Send for TokenizerError
impl Sync for TokenizerError
impl Unpin for TokenizerError
impl UnwindSafe for TokenizerError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more