pub enum Path<'a> {
Root,
Seq {
parent: &'a Path<'a>,
index: usize,
},
Map {
parent: &'a Path<'a>,
key: &'a str,
},
Alias {
parent: &'a Path<'a>,
},
Unknown {
parent: &'a Path<'a>,
},
}Expand description
A structured representation of a path to the current value in the input,
like dependencies.serde.typo1.
Variants§
Root
The root of the input.
Seq
A sequence index.
Fields
Map
A map key.
Alias
An alias.
Unknown
An unknown path.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Path<'a>
impl<'a> RefUnwindSafe for Path<'a>
impl<'a> Send for Path<'a>
impl<'a> Sync for Path<'a>
impl<'a> Unpin for Path<'a>
impl<'a> UnsafeUnpin for Path<'a>
impl<'a> UnwindSafe for Path<'a>
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