Struct codemap::Loc [] [src]

pub struct Loc {
    pub file: Arc<File>,
    pub position: LineCol,
}

A file, and a line and column within it.

Fields

Trait Implementations

impl Clone for Loc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Loc
[src]

Formats the location as filename:line:column, with a 1-indexed line and column.