pub struct Location<'l> {
pub src_file: &'l str,
pub line: usize,
pub col: usize,
}Expand description
convenience structure for a location in the source code
Fields§
§src_file: &'l str§line: usize§col: usizeTrait Implementations§
Auto Trait Implementations§
impl<'l> Freeze for Location<'l>
impl<'l> RefUnwindSafe for Location<'l>
impl<'l> Send for Location<'l>
impl<'l> Sync for Location<'l>
impl<'l> Unpin for Location<'l>
impl<'l> UnwindSafe for Location<'l>
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