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§
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 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 · 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<ParseFloatError> for LexerError
impl From<ParseFloatError> for LexerError
source§fn from(_: ParseFloatError) -> Self
fn from(_: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for LexerError
impl From<ParseIntError> for LexerError
source§fn from(_: ParseIntError) -> Self
fn from(_: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<ProtobufFloatParseError> for LexerError
impl From<ProtobufFloatParseError> for LexerError
source§fn from(_: ProtobufFloatParseError) -> Self
fn from(_: ProtobufFloatParseError) -> Self
Converts to this type from the input type.
source§impl From<StrLitDecodeError> for LexerError
impl From<StrLitDecodeError> for LexerError
source§fn 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§
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