Struct oxischeme::read::Location [-]  [+] [src]

pub struct Location {
    pub file: String,
    pub line: u64,
    pub column: u64,
}

A source location.

Fields

file

The source file.

line

1-based line number.

column

1-based column number.

Methods

impl Location

fn new(file: String) -> Location

Create a new Location object.

fn unknown() -> Location

Create a placeholder Location object for when the actual location is unknown.

Trait Implementations

impl Display for Location

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

impl Clone for Location

fn clone(&self) -> Location

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

Derived Implementations

impl Debug for Location

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