Enum protobuf_support::lexer::lexer_impl::LexerError
source · [−]pub enum LexerError {
Show 14 variants
IncorrectInput,
UnexpectedEof,
ExpectChar(char),
ParseIntError,
ParseFloatError,
IncorrectFloatLit,
IncorrectJsonEscape,
IncorrectJsonNumber,
IncorrectUnicodeChar,
ExpectHexDigit,
ExpectOctDigit,
ExpectDecDigit,
StrLitDecodeError(StrLitDecodeError),
ExpectedIdent,
}
Variants
IncorrectInput
UnexpectedEof
ExpectChar(char)
ParseIntError
ParseFloatError
IncorrectFloatLit
IncorrectJsonEscape
IncorrectJsonNumber
IncorrectUnicodeChar
ExpectHexDigit
ExpectOctDigit
ExpectDecDigit
StrLitDecodeError(StrLitDecodeError)
ExpectedIdent
Trait Implementations
sourceimpl Debug for LexerError
impl Debug for LexerError
sourceimpl Display for LexerError
impl Display for LexerError
sourceimpl Error for LexerError
impl Error for LexerError
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<ParseFloatError> for LexerError
impl From<ParseFloatError> for LexerError
sourcefn from(_: ParseFloatError) -> Self
fn from(_: ParseFloatError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for LexerError
impl From<ParseIntError> for LexerError
sourcefn from(_: ParseIntError) -> Self
fn from(_: ParseIntError) -> Self
Converts to this type from the input type.
sourceimpl From<ProtobufFloatParseError> for LexerError
impl From<ProtobufFloatParseError> for LexerError
sourcefn from(_: ProtobufFloatParseError) -> Self
fn from(_: ProtobufFloatParseError) -> Self
Converts to this type from the input type.
sourceimpl From<StrLitDecodeError> for LexerError
impl From<StrLitDecodeError> for LexerError
sourcefn from(source: StrLitDecodeError) -> Self
fn from(source: StrLitDecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for LexerError
impl Send for LexerError
impl Sync for LexerError
impl Unpin for LexerError
impl UnwindSafe for LexerError
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