Struct syntax_pos::Loc[][src]

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

A source code location used for error reporting

Fields

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
[src]

Formats the value using the given formatter. Read more

impl Clone for Loc
[src]

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