Enum serialize::json::ErrorCodeExperimental [-]  [+] [src]

pub enum ErrorCode {
    InvalidSyntax,
    InvalidNumber,
    EOFWhileParsingObject,
    EOFWhileParsingArray,
    EOFWhileParsingValue,
    EOFWhileParsingString,
    KeyMustBeAString,
    ExpectedColon,
    TrailingCharacters,
    TrailingComma,
    InvalidEscape,
    InvalidUnicodeCodePoint,
    LoneLeadingSurrogateInHexEscape,
    UnexpectedEndOfHexEscape,
    UnrecognizedHex,
    NotFourDigit,
    NotUtf8,
}

The errors that can arise while parsing a JSON stream.

Variants

InvalidSyntax
InvalidNumber
EOFWhileParsingObject
EOFWhileParsingArray
EOFWhileParsingValue
EOFWhileParsingString
KeyMustBeAString
ExpectedColon
TrailingCharacters
TrailingComma
InvalidEscape
InvalidUnicodeCodePoint
LoneLeadingSurrogateInHexEscape
UnexpectedEndOfHexEscape
UnrecognizedHex
NotFourDigit
NotUtf8

Trait Implementations

impl Copy for ErrorCode

impl Show for ErrorCode

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

Derived Implementations

impl PartialEq for ErrorCode

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

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

impl Clone for ErrorCode

fn clone(&self) -> ErrorCode

fn clone_from(&mut self, source: &Self)