pub struct Location {
pub offset: usize,
pub line: usize,
pub column: usize,
}Expand description
Represents a location in a parsed stream: offset as well as line and column. This location
is maintained by a JsonReader and is mostly useful to help pinpoint problems.
Fields§
§offset: usizein bytes, not characters - aligned with how Rust counts offsets in strings
line: usize§column: usizein bytes, not characters - aligned with how Rust counts offsets in strings
Implementations§
Trait Implementations§
impl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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