pub struct JsonCodeMapEntry {
pub span: Span,
pub volume: usize,
}Expand description
Code-map entry.
Provides code-mapping metadata about a fragment of JSON value.
Fields§
§span: SpanByte span of the fragment in the original source code.
volume: usizeNumber of sub-fragment (including the fragment itself).
Implementations§
Trait Implementations§
Source§impl Clone for JsonCodeMapEntry
impl Clone for JsonCodeMapEntry
impl Copy for JsonCodeMapEntry
Source§impl Debug for JsonCodeMapEntry
impl Debug for JsonCodeMapEntry
Source§impl Default for JsonCodeMapEntry
impl Default for JsonCodeMapEntry
impl Eq for JsonCodeMapEntry
Source§impl Hash for JsonCodeMapEntry
impl Hash for JsonCodeMapEntry
Source§impl Ord for JsonCodeMapEntry
impl Ord for JsonCodeMapEntry
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 JsonCodeMapEntry
impl PartialEq for JsonCodeMapEntry
Source§impl PartialOrd for JsonCodeMapEntry
impl PartialOrd for JsonCodeMapEntry
impl StructuralPartialEq for JsonCodeMapEntry
Auto Trait Implementations§
impl Freeze for JsonCodeMapEntry
impl RefUnwindSafe for JsonCodeMapEntry
impl Send for JsonCodeMapEntry
impl Sync for JsonCodeMapEntry
impl Unpin for JsonCodeMapEntry
impl UnsafeUnpin for JsonCodeMapEntry
impl UnwindSafe for JsonCodeMapEntry
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.