pub struct Path(/* private fields */);
Expand description
A path to a JSON Element
where the path components are heap allocated and so do not require
a lifetime back to the source JSON &str
.
The Display impl outputs strings like:
$
The root is represented by a dollar.$.object_key
Dots separate the path elements.$.object_key.2
Arrays are represented as integers.
Trait Implementations§
Source§impl Ord for Path
impl Ord for Path
Source§impl PartialEq<String> for Path
The Path
can be compared with other strings just like a String
.
impl PartialEq<String> for Path
The Path
can be compared with other strings just like a String
.
Source§impl PartialOrd for Path
impl PartialOrd for Path
impl Eq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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