Enum jomini::DeserializeErrorKind
source · [−]pub enum DeserializeErrorKind {
Message(String),
Unsupported(String),
Scalar(ScalarError),
UnknownToken {
token_id: u16,
},
}Expand description
The type of a Serde deserialization error.
Variants
Message(String)
A generic Serde deserialization error
Unsupported(String)
Requested serde operation is unsupported
Scalar(ScalarError)
Error converting underlying data to desired format
UnknownToken
Fields
token_id: u16The unknown 16bit token
An unknown binary token was encountered
Trait Implementations
sourceimpl Debug for DeserializeErrorKind
impl Debug for DeserializeErrorKind
sourceimpl PartialEq<DeserializeErrorKind> for DeserializeErrorKind
impl PartialEq<DeserializeErrorKind> for DeserializeErrorKind
sourcefn eq(&self, other: &DeserializeErrorKind) -> bool
fn eq(&self, other: &DeserializeErrorKind) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DeserializeErrorKind) -> bool
fn ne(&self, other: &DeserializeErrorKind) -> bool
This method tests for !=.
impl StructuralPartialEq for DeserializeErrorKind
Auto Trait Implementations
impl RefUnwindSafe for DeserializeErrorKind
impl Send for DeserializeErrorKind
impl Sync for DeserializeErrorKind
impl Unpin for DeserializeErrorKind
impl UnwindSafe for DeserializeErrorKind
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