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

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

A source code location used for error reporting

Fields

file: Rc<FileMap>
Unstable (rustc_private)

Information about the original source

line: usize
Unstable (rustc_private)

The (1-based) line number

col: CharPos
Unstable (rustc_private)

The (0-based) column offset

Trait Implementations

Derived Implementations

impl Debug for Loc
[src]

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

Formats the value using the given formatter.