Loc in rustc_span - Rust (original) (raw)

pub struct Loc {
    pub file: Arc<SourceFile>,
    pub line: usize,
    pub col: CharPos,
    pub col_display: usize,
}

Expand description

A source code location used for error reporting.

Information about the original source.

The (1-based) line number.

The (0-based) column offset.

The (0-based) column offset when displayed.

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. 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