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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Loc
[src]

impl PartialEq for Loc
[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 Loc
[src]

[src]

Formats the value using the given formatter.

impl Display for Loc
[src]

[src]

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