pub enum ParseErrorKind {
ExpectedNumeral,
ExpectedStart,
ExpectedLiteral {
expected: &'static str,
},
ExpectedEndArray,
ExpectedEndObject,
UnexpectedChar {
expected: char,
},
UnexpectedEOF,
TrailingContent,
DepthLimitExceeded,
MaxElements,
}Expand description
The specific reason a [parse] call failed.
Variants§
ExpectedNumeral
A character that cannot be a JSON number was encountered.
ExpectedStart
A character that cannot start a JSON value was encountered.
ExpectedLiteral
A literal that cannot start or continue a JSON value was encountered.
ExpectedEndArray
An array wasn’t terminated correctly.
ExpectedEndObject
An object wasn’t terminated correctly.
UnexpectedChar
A character that cannot continue a JSON value was encountered.
UnexpectedEOF
The input ended before the value was complete.
TrailingContent
Non-whitespace bytes follow the root value.
DepthLimitExceeded
The input exceeds the maximum supported nesting depth.
MaxElements
The input contains more than u32::MAX JSON elements.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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