Enum esexpr::DecodeErrorPath
source · pub enum DecodeErrorPath {
Current,
Constructor(String),
Positional(String, usize, Box<DecodeErrorPath>),
Keyword(String, String, Box<DecodeErrorPath>),
}Expand description
Specifies where in an expression an error occurred.
Variants§
Current
Error occurred at the current position in the object.
Constructor(String)
Error occurred at the current position in the object, within a constructor with the specified name.
Positional(String, usize, Box<DecodeErrorPath>)
Error occurred under a positional argument.
Keyword(String, String, Box<DecodeErrorPath>)
Error occurred under a keyword argument.
Trait Implementations§
source§impl Clone for DecodeErrorPath
impl Clone for DecodeErrorPath
source§fn clone(&self) -> DecodeErrorPath
fn clone(&self) -> DecodeErrorPath
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 DecodeErrorPath
impl Debug for DecodeErrorPath
source§impl PartialEq for DecodeErrorPath
impl PartialEq for DecodeErrorPath
source§fn eq(&self, other: &DecodeErrorPath) -> bool
fn eq(&self, other: &DecodeErrorPath) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DecodeErrorPath
Auto Trait Implementations§
impl Freeze for DecodeErrorPath
impl RefUnwindSafe for DecodeErrorPath
impl Send for DecodeErrorPath
impl Sync for DecodeErrorPath
impl Unpin for DecodeErrorPath
impl UnwindSafe for DecodeErrorPath
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)