pub enum JsonPath<'a: 'b, 'b> {
Root(&'a Json),
Descendant(&'a Json, &'b JsonPath<'a, 'b>),
}Expand description
JSON node path
Represents a path to a JSON node.
Variants§
Root(&'a Json)
At the root node
Descendant(&'a Json, &'b JsonPath<'a, 'b>)
At a node with the given parent path
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for JsonPath<'a, 'b>
impl<'a, 'b> RefUnwindSafe for JsonPath<'a, 'b>
impl<'a, 'b> Send for JsonPath<'a, 'b>
impl<'a, 'b> Sync for JsonPath<'a, 'b>
impl<'a, 'b> Unpin for JsonPath<'a, 'b>
impl<'a, 'b> UnwindSafe for JsonPath<'a, 'b>
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