pub enum PathSegmentRef<'a> {
Field(Cow<'a, str>),
Index(i64),
Wildcard,
RecursiveDescent,
}Expand description
A segment in a zero-copy JSON path.
Variants§
Field(Cow<'a, str>)
Field access with borrowed name.
Index(i64)
Array index access.
Wildcard
Array wildcard.
RecursiveDescent
Recursive descent.
Trait Implementations§
Source§impl<'a> Clone for PathSegmentRef<'a>
impl<'a> Clone for PathSegmentRef<'a>
Source§fn clone(&self) -> PathSegmentRef<'a>
fn clone(&self) -> PathSegmentRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PathSegmentRef<'a>
impl<'a> Debug for PathSegmentRef<'a>
Source§impl<'a> PartialEq for PathSegmentRef<'a>
impl<'a> PartialEq for PathSegmentRef<'a>
impl<'a> StructuralPartialEq for PathSegmentRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for PathSegmentRef<'a>
impl<'a> RefUnwindSafe for PathSegmentRef<'a>
impl<'a> Send for PathSegmentRef<'a>
impl<'a> Sync for PathSegmentRef<'a>
impl<'a> Unpin for PathSegmentRef<'a>
impl<'a> UnwindSafe for PathSegmentRef<'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