Struct syntax::codemap::Loc [−] [src]

pub struct Loc {
    pub file: Rc<FileMap>,
    pub line: usize,
    pub col: CharPos,
}
Unstable

A source code location used for error reporting

Fields

file
Unstable

Information about the original source

line
Unstable

The (1-based) line number

col
Unstable

The (0-based) column offset

Trait Implementations

Derived Implementations

impl Debug for Loc

fn fmt(&self, __arg_0: &mut Formatter) -> Result