pub enum DecodeErrorType {
UnexpectedExpr {
expected_tags: ESExprTagSet,
actual_tag: ESExprTag<'static>,
},
OutOfRange(String),
MissingKeyword(String),
MissingPositional,
}Expand description
The type of error that occurred while decoding.
Variants§
UnexpectedExpr
An expression had a different tag than expected.
OutOfRange(String)
Indicates that a value was not valid for the decoded type.
MissingKeyword(String)
Indicates that a keyword argument was missing.
MissingPositional
Indicates that a positional argument was missing.
Trait Implementations§
Source§impl Clone for DecodeErrorType
impl Clone for DecodeErrorType
Source§fn clone(&self) -> DecodeErrorType
fn clone(&self) -> DecodeErrorType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecodeErrorType
impl RefUnwindSafe for DecodeErrorType
impl Send for DecodeErrorType
impl Sync for DecodeErrorType
impl Unpin for DecodeErrorType
impl UnwindSafe for DecodeErrorType
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