Struct syntax_pos::Loc[][src]

pub struct Loc {
    pub file: Lrc<FileMap>,
    pub line: usize,
    pub col: CharPos,
    pub col_display: usize,

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

Trait Implementations

impl Debug for Loc

Formats the value using the given formatter. Read more

impl Clone for Loc

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Loc

impl !Sync for Loc