pub enum Step<'a> {
Key(&'a [u8]),
Index(i64),
}Expand description
One step of a path.
Variants§
Key(&'a [u8])
A member of an object, by name.
Index(i64)
An element of an array. Negative counts back from the end, so -1 is the last element.
Trait Implementations§
impl<'a> Copy for Step<'a>
impl<'a> Eq for Step<'a>
impl<'a> StructuralPartialEq for Step<'a>
Auto Trait Implementations§
impl<'a> Freeze for Step<'a>
impl<'a> RefUnwindSafe for Step<'a>
impl<'a> Send for Step<'a>
impl<'a> Sync for Step<'a>
impl<'a> Unpin for Step<'a>
impl<'a> UnsafeUnpin for Step<'a>
impl<'a> UnwindSafe for Step<'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