Struct syntex_pos::Loc [] [src]

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

A source code location used for error reporting

Fields

file: Rc<FileMap>

Information about the original source

line: usize

The (1-based) line number

col: CharPos

The (0-based) column offset

Trait Implementations

impl Clone for Loc
[src]

fn clone(&self) -> Loc

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Loc
[src]

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

Formats the value using the given formatter.