Enum json::JsonError [] [src]

pub enum JsonError {
    UnexpectedCharacter {
        ch: char,
        line: usize,
        column: usize,
    },
    UnexpectedEndOfJson,
    FailedUtf8Parsing,
    ArrayIndexOutOfBounds,
    WrongType(String),
    UndefinedField(String),
}

Variants

UnexpectedCharacter

Fields

ch: char
line: usize
column: usize
UnexpectedEndOfJsonFailedUtf8ParsingArrayIndexOutOfBoundsWrongType(String)UndefinedField(String)

Methods

impl JsonError
[src]

fn wrong_type(expected: &str) -> Self

Trait Implementations

impl PartialEq for JsonError
[src]

fn eq(&self, __arg_0: &JsonError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &JsonError) -> bool

This method tests for !=.

impl Debug for JsonError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for JsonError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for JsonError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more