pub struct Location {
pub line: usize,
pub column: usize,
}Expand description
A location within source file
Fields§
§line: usizeThe one-based line number of the error.
column: usizeThe one-based column number of the error.
Trait Implementations§
Source§impl From<LineColLocation> for Location
impl From<LineColLocation> for Location
Source§fn from(lc: LineColLocation) -> Self
fn from(lc: LineColLocation) -> Self
Converts to this type from the input type.
impl Copy 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 UnsafeUnpin 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