Enum rustc-serialize::json::ErrorCode [-]  [+] [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 Debug 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 Copy for ErrorCode

impl Clone for ErrorCode

fn clone(&self) -> ErrorCode

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