#[repr(i8)]pub enum ErrorCode {
InvalidEscape = 1,
IllegalControlChar = 2,
UnexpectedEOF = 3,
UnexpectedToken = 4,
MalformedNumber = 5,
Callback = 6,
}Expand description
Error code identifying the type of JSON error.
Variants§
InvalidEscape = 1
Invalid escape sequence in a string.
IllegalControlChar = 2
Illegal control character (< 0x20) encountered.
UnexpectedEOF = 3
Unexpected end of input.
UnexpectedToken = 4
Unexpected token.
MalformedNumber = 5
Malformed number literal.
Callback = 6
Callback returned true to stop scanning.
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin 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