Struct codemap::SpanLoc [] [src]

pub struct SpanLoc {
    pub file: Arc<File>,
    pub begin: LineCol,
    pub end: LineCol,
}

A file, and a line and column range within it.

Fields

Trait Implementations

impl Clone for SpanLoc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for SpanLoc
[src]

Formats the span as filename:start_line:start_column: end_line:end_column, or if the span is zero-length, filename:line:column, with a 1-indexed line and column.