Struct leo_span::source_map::LineCol
source · pub struct LineCol {
pub source_file: Rc<SourceFile>,
pub line: usize,
pub col: CharPos,
}
Expand description
File / Line / Column information on a BytePos
.
Fields§
§source_file: Rc<SourceFile>
Information on the original source.
line: usize
The 1-based line number.
col: CharPos
The (0-based) column offset into the line.
Auto Trait Implementations§
impl Freeze for LineCol
impl RefUnwindSafe for LineCol
impl !Send for LineCol
impl !Sync for LineCol
impl Unpin for LineCol
impl UnwindSafe for LineCol
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