pub struct JsonLocation {
pub line: usize,
pub column: usize,
}Expand description
Location in the source JSON document.
Line and column numbers are 1-indexed. An unknown location is represented as (0, 0).
Fields§
§line: usizeLine number (1-indexed).
column: usizeColumn number (1-indexed).
Implementations§
Trait Implementations§
Source§impl Clone for JsonLocation
impl Clone for JsonLocation
Source§fn clone(&self) -> JsonLocation
fn clone(&self) -> JsonLocation
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 Debug for JsonLocation
impl Debug for JsonLocation
Source§impl Default for JsonLocation
impl Default for JsonLocation
Source§fn default() -> JsonLocation
fn default() -> JsonLocation
Returns the “default value” for a type. Read more
Source§impl Display for JsonLocation
impl Display for JsonLocation
Source§impl Hash for JsonLocation
impl Hash for JsonLocation
Source§impl PartialEq for JsonLocation
impl PartialEq for JsonLocation
impl Copy for JsonLocation
impl Eq for JsonLocation
impl StructuralPartialEq for JsonLocation
Auto Trait Implementations§
impl Freeze for JsonLocation
impl RefUnwindSafe for JsonLocation
impl Send for JsonLocation
impl Sync for JsonLocation
impl Unpin for JsonLocation
impl UnwindSafe for JsonLocation
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