Enum rustc_serialize::json::ErrorCode
source · pub enum ErrorCode {
Show 18 variants
InvalidSyntax,
InvalidNumber,
EOFWhileParsingObject,
EOFWhileParsingArray,
EOFWhileParsingValue,
EOFWhileParsingString,
KeyMustBeAString,
ExpectedColon,
TrailingCharacters,
TrailingComma,
InvalidEscape,
InvalidUnicodeCodePoint,
LoneLeadingSurrogateInHexEscape,
UnexpectedEndOfHexEscape,
UnrecognizedHex,
NotFourDigit,
ControlCharacterInString,
NotUtf8,
}
Expand description
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§
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
impl Copy for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more