Struct rustc_ap_rustc_span::Loc [−][src]
pub struct Loc { pub file: Lrc<SourceFile>, pub line: usize, pub col: CharPos, pub col_display: usize, }
Expand description
A source code location used for error reporting.
Fields
file: Lrc<SourceFile>
Information about the original source.
line: usize
The (1-based) line number.
col: CharPos
The (0-based) column offset.
col_display: usize
The (0-based) column offset when displayed.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Loc
impl !UnwindSafe for Loc
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V