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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for SpanLoc
[src]

impl PartialEq for SpanLoc
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for SpanLoc
[src]

[src]

Formats the value using the given formatter.

impl Display for SpanLoc
[src]

[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.