Struct cton_reader::Location
[−]
[src]
pub struct Location { pub line_number: usize, }
The location of a Token
or Error
.
Fields
line_number: usize
Line number. Command-line arguments are line 0 and source file lines start from 1.
Trait Implementations
impl Debug for Location
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Location
[src]
fn clone(&self) -> Location
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Location
[src]
impl PartialEq for Location
[src]
fn eq(&self, __arg_0: &Location) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Location) -> bool
[src]
This method tests for !=
.