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: usizeThe (1-based) line number.
col: CharPosThe (0-based) column offset.
col_display: usizeThe (0-based) column offset when displayed.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Locimpl !UnwindSafe for LocBlanket 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 = TShould always be Self
pub fn vzip(self) -> V