pub enum Step {
Field(String),
Position(usize),
Index(usize),
}Expand description
A step of the path from the value that was read or written to the value that an error is about.
Variants§
Field(String)
A field of a record, or a parameter of a tuple, by name.
Position(usize)
A parameter of a tuple that has no name, by its position from 0.
Index(usize)
An element of an array, by its index from 0.
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Forget for Step
impl Freeze for Step
impl Move for Step
impl RefUnwindSafe for Step
impl Send for Stepwhere
RawVecInner: Send,
impl Sync for Stepwhere
RawVecInner: Sync,
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Stepwhere
RawVecInner: UnwindSafe,
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