pub struct JsonMapped<T>(pub T, pub JsonCodeMapOffset);Tuple Fields§
§0: T§1: JsonCodeMapOffsetImplementations§
Source§impl<T> JsonMapped<T>
impl<T> JsonMapped<T>
pub fn offset(&self) -> JsonCodeMapOffset
pub fn into_offset(self) -> JsonCodeMapOffset
pub fn inner(&self) -> &T
pub fn into_inner(self) -> T
Trait Implementations§
Source§impl<T: Clone> Clone for JsonMapped<T>
impl<T: Clone> Clone for JsonMapped<T>
impl<T: Copy> Copy for JsonMapped<T>
Source§impl<T: Debug> Debug for JsonMapped<T>
impl<T: Debug> Debug for JsonMapped<T>
Source§impl<T: Display> Display for JsonMapped<T>
impl<T: Display> Display for JsonMapped<T>
impl<T: Eq> Eq for JsonMapped<T>
Source§impl<T: 'static + Error> Error for JsonMapped<T>
impl<T: 'static + Error> Error for JsonMapped<T>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<T: Hash> Hash for JsonMapped<T>
impl<T: Hash> Hash for JsonMapped<T>
Source§impl<T: Ord> Ord for JsonMapped<T>
impl<T: Ord> Ord for JsonMapped<T>
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<T: PartialEq> PartialEq for JsonMapped<T>
impl<T: PartialEq> PartialEq for JsonMapped<T>
Source§impl<T: PartialOrd> PartialOrd for JsonMapped<T>
impl<T: PartialOrd> PartialOrd for JsonMapped<T>
impl<T: PartialEq> StructuralPartialEq for JsonMapped<T>
Auto Trait Implementations§
impl<T> Freeze for JsonMapped<T>where
T: Freeze,
impl<T> RefUnwindSafe for JsonMapped<T>where
T: RefUnwindSafe,
impl<T> Send for JsonMapped<T>where
T: Send,
impl<T> Sync for JsonMapped<T>where
T: Sync,
impl<T> Unpin for JsonMapped<T>where
T: Unpin,
impl<T> UnsafeUnpin for JsonMapped<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for JsonMapped<T>where
T: UnwindSafe,
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.