pub struct Location<'a> {
pub file: Option<&'a str>,
pub line: Option<u32>,
pub column: Option<u32>,
}
Expand description
A source location.
Fields§
§file: Option<&'a str>
The file name.
line: Option<u32>
The line number.
column: Option<u32>
The column number.
A value of Some(0)
indicates the left edge.
Auto Trait Implementations§
impl<'a> Freeze for Location<'a>
impl<'a> RefUnwindSafe for Location<'a>
impl<'a> Send for Location<'a>
impl<'a> Sync for Location<'a>
impl<'a> Unpin for Location<'a>
impl<'a> UnwindSafe for Location<'a>
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