Enum esexpr::DecodeErrorType
source · pub enum DecodeErrorType {
UnexpectedExpr {
expected_tags: HashSet<ESExprTag>,
actual_tag: ESExprTag,
},
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 copy 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 moresource§impl Debug for DecodeErrorType
impl Debug for DecodeErrorType
source§impl PartialEq for DecodeErrorType
impl PartialEq for DecodeErrorType
impl StructuralPartialEq for DecodeErrorType
Auto 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)