Enum json::JsonError
[−]
[src]
pub enum JsonError { UnexpectedCharacter { ch: char, line: usize, column: usize, }, UnexpectedEndOfJson, ExceededDepthLimit, FailedUtf8Parsing, WrongType(String), }
Error type of this crate.
Note: Since 0.9.0
using JsonError
is deprecated. Always use
json::Error
instead!
Variants
UnexpectedCharacter
Fields of UnexpectedCharacter
ch: char | |
line: usize | |
column: usize |
UnexpectedEndOfJson
ExceededDepthLimit
FailedUtf8Parsing
WrongType(String)
Methods
impl Error
[src]
fn wrong_type(expected: &str) -> Self
[src]
Trait Implementations
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.
impl Eq for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more