pub enum JsonErrorKind {
UnexpectedEof,
UnexpectedCharacter(char),
NumberOutOfRange(f64),
StringAsNumber(String),
}Expand description
An error kind for JSON parsing.
Variants§
UnexpectedEof
The input ended unexpectedly while parsing JSON.
UnexpectedCharacter(char)
An unexpected character was encountered in the input.
NumberOutOfRange(f64)
A number is out of range.
StringAsNumber(String)
An unexpected String was encountered in the input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonErrorKind
impl RefUnwindSafe for JsonErrorKind
impl Send for JsonErrorKind
impl Sync for JsonErrorKind
impl Unpin for JsonErrorKind
impl UnwindSafe for JsonErrorKind
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
Source§impl<T> Stylize for T
impl<T> Stylize for T
Source§fn bright_red(self) -> Styled<T>
fn bright_red(self) -> Styled<T>
Apply bright red color style to a value.
Source§fn bright_green(self) -> Styled<T>
fn bright_green(self) -> Styled<T>
Apply bright green color style to a value.
Source§fn bright_blue(self) -> Styled<T>
fn bright_blue(self) -> Styled<T>
Apply bright blue color style to a value.
Source§fn bright_yellow(self) -> Styled<T>
fn bright_yellow(self) -> Styled<T>
Apply bright yellow color style to a value.
Source§fn bright_magenta(self) -> Styled<T>
fn bright_magenta(self) -> Styled<T>
Apply bright magenta color style to a value.
Source§fn bright_cyan(self) -> Styled<T>
fn bright_cyan(self) -> Styled<T>
Apply bright cyan color style to a value.
Source§fn bright_white(self) -> Styled<T>
fn bright_white(self) -> Styled<T>
Apply bright white color style to a value.