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,
    ControlCharacterInString,
    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
ControlCharacterInString
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

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