pub enum JsonFragmentPathItemRef<'a> {
ArrayItem(usize),
ObjectEntry(&'a str, usize, JsonObjectEntryPart),
}Expand description
Borrowed form of JsonFragmentPathSegment, used while building a
backtrace to avoid allocating until JsonBacktraceBuilder::build is
called.
Variants§
Implementations§
Source§impl JsonFragmentPathItemRef<'_>
impl JsonFragmentPathItemRef<'_>
Sourcepub fn into_owned(self) -> JsonFragmentPathSegment
pub fn into_owned(self) -> JsonFragmentPathSegment
Converts this borrowed path segment into its owned
JsonFragmentPathSegment form.
Trait Implementations§
Source§impl<'a> Clone for JsonFragmentPathItemRef<'a>
impl<'a> Clone for JsonFragmentPathItemRef<'a>
impl<'a> Copy for JsonFragmentPathItemRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for JsonFragmentPathItemRef<'a>
impl<'a> RefUnwindSafe for JsonFragmentPathItemRef<'a>
impl<'a> Send for JsonFragmentPathItemRef<'a>
impl<'a> Sync for JsonFragmentPathItemRef<'a>
impl<'a> Unpin for JsonFragmentPathItemRef<'a>
impl<'a> UnsafeUnpin for JsonFragmentPathItemRef<'a>
impl<'a> UnwindSafe for JsonFragmentPathItemRef<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.