pub enum Error {
Show 15 variants
NumberWithTwoPeriods,
InvalidUtf8,
InvalidEscaped(u8),
InvalidHex(u8),
InvalidLoneLeadingSurrogateInHexEscape(u16),
InvalidSurrogateInHexEscape(u16),
UnexpectedEndOfHexEscape,
KeyWithoutDoubleColon,
InvalidToken(u8),
MissingComma(u8),
InvalidStringToken(u8),
InvalidNullToken([u8; 4]),
InvalidFalseToken([u8; 5]),
InvalidTrueToken([u8; 4]),
InvalidEOF,
}
Expand description
List of possible errors
Variants§
NumberWithTwoPeriods
todo
InvalidUtf8
todo
InvalidEscaped(u8)
todo
InvalidHex(u8)
todo
InvalidLoneLeadingSurrogateInHexEscape(u16)
Invalid surrogate
InvalidSurrogateInHexEscape(u16)
Invalid surrogate pair
UnexpectedEndOfHexEscape
When a surrogate misses the pair
KeyWithoutDoubleColon
todo
InvalidToken(u8)
todo
MissingComma(u8)
todo
InvalidStringToken(u8)
todo
InvalidNullToken([u8; 4])
todo
InvalidFalseToken([u8; 5])
When an invalid token is found while trying to parse “false”
InvalidTrueToken([u8; 4])
When an invalid token is found while trying to parse “true”
InvalidEOF
todo
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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