pub struct Location {
pub line: usize,
pub col: usize,
pub file_name: Option<Arc<String>>,
}
Expand description
A location in a file.
Fields§
§line: usize
The line where the error occurred.
col: usize
The column where the error occurred.
file_name: Option<Arc<String>>
The file in which the error occurred.
This file is sometimes not provided if the method Builder::src_name is not used. In
this case, file_name
is None
.
Trait Implementations§
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