Struct 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
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes