pub enum Step {
Field(String),
Index(i64),
Iterate,
Comment(CommentKind),
}Expand description
One navigation step within a path, applied to the current input.
Variants§
Field(String)
.field or ."quoted" - object member access.
Index(i64)
[n] - array index (negative counts from the end).
Iterate
[] - iterate array elements / object values.
Comment(CommentKind)
# (head) / #.head / #.inline / #.foot - the comment of the node
reached by the preceding steps. Terminal: no step may follow it.
Trait Implementations§
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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