pub enum JsonFragmentPathSegment {
ArrayItem(usize),
ObjectEntry(String, usize, JsonObjectEntryPart),
}Expand description
Owned form of a single path navigation step, as recorded in a
JsonBacktraceFrame.
Variants§
ArrayItem(usize)
Navigates into the element at this index of an array.
ObjectEntry(String, usize, JsonObjectEntryPart)
Navigates into the occurrence-th entry with this key in an
object, targeting the part given by JsonObjectEntryPart.
Trait Implementations§
Source§impl Clone for JsonFragmentPathSegment
impl Clone for JsonFragmentPathSegment
Source§impl Debug for JsonFragmentPathSegment
impl Debug for JsonFragmentPathSegment
impl Eq for JsonFragmentPathSegment
Source§impl Hash for JsonFragmentPathSegment
impl Hash for JsonFragmentPathSegment
Source§impl Ord for JsonFragmentPathSegment
impl Ord for JsonFragmentPathSegment
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for JsonFragmentPathSegment
impl PartialEq for JsonFragmentPathSegment
Source§impl PartialOrd for JsonFragmentPathSegment
impl PartialOrd for JsonFragmentPathSegment
impl StructuralPartialEq for JsonFragmentPathSegment
Auto Trait Implementations§
impl Freeze for JsonFragmentPathSegment
impl RefUnwindSafe for JsonFragmentPathSegment
impl Send for JsonFragmentPathSegment
impl Sync for JsonFragmentPathSegment
impl Unpin for JsonFragmentPathSegment
impl UnsafeUnpin for JsonFragmentPathSegment
impl UnwindSafe for JsonFragmentPathSegment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> JsonAt for T
impl<T> JsonAt for T
Source§fn json_at<F>(
self,
location: impl Into<Vec<JsonBacktraceFrame<F>>>,
) -> JsonLocated<T, F>
fn json_at<F>( self, location: impl Into<Vec<JsonBacktraceFrame<F>>>, ) -> JsonLocated<T, F>
Pairs
self with location.