Enum json_deserializer::Error
source · 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§
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.