pub enum Error {
Show 15 variants
NumberWithTwoPeriods,
InvalidUtf8,
InvalidEscaped(u8),
InvalidHex(u8),
InvalidLoneLeadingSurrogateInHexEscape(u16),
InvalidSurrogateInHexEscape(u16),
UnexpectedEndOfHexEscape,
KeyWithoutDoubleColon,
InvalidToken(u8),
MissingComa(u8),
InvalidStringToken(u8),
InvalidNullToken([u8; 4]),
InvalidFalseToken([u8; 5]),
InvalidTrueToken([u8; 4]),
InvalidEOF,
}
Available on crate feature
json
only.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
MissingComa(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 StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.