pub struct LocInfo<'a> {
pub path: &'a Path,
pub line: usize,
pub col: usize,
}
Expand description
Information regarding the on-disk location of a span of code.
This type is produced by SourceMap::locinfo
.
Fields§
§path: &'a Path
§line: usize
§col: usize
Trait Implementations§
impl<'a> Copy for LocInfo<'a>
impl<'a> Eq for LocInfo<'a>
impl<'a> StructuralPartialEq for LocInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for LocInfo<'a>
impl<'a> RefUnwindSafe for LocInfo<'a>
impl<'a> Send for LocInfo<'a>
impl<'a> Sync for LocInfo<'a>
impl<'a> Unpin for LocInfo<'a>
impl<'a> UnwindSafe for LocInfo<'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