Enum json_deserializer::OutOfSpecError
source · [−]pub enum OutOfSpecError {
NumberWithTwoPeriods,
InvalidUtf8,
InvalidEscaped(u8),
InvalidHex(u8),
KeyWithoutDoubleColon,
InvalidToken(u8),
MissingComa(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
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
sourceimpl Clone for OutOfSpecError
impl Clone for OutOfSpecError
sourcefn clone(&self) -> OutOfSpecError
fn clone(&self) -> OutOfSpecError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OutOfSpecError
impl Debug for OutOfSpecError
sourceimpl Hash for OutOfSpecError
impl Hash for OutOfSpecError
sourceimpl PartialEq<OutOfSpecError> for OutOfSpecError
impl PartialEq<OutOfSpecError> for OutOfSpecError
sourcefn eq(&self, other: &OutOfSpecError) -> bool
fn eq(&self, other: &OutOfSpecError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OutOfSpecError) -> bool
fn ne(&self, other: &OutOfSpecError) -> bool
This method tests for !=
.
impl Eq for OutOfSpecError
impl StructuralEq for OutOfSpecError
impl StructuralPartialEq for OutOfSpecError
Auto Trait Implementations
impl RefUnwindSafe for OutOfSpecError
impl Send for OutOfSpecError
impl Sync for OutOfSpecError
impl Unpin for OutOfSpecError
impl UnwindSafe for OutOfSpecError
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more