Struct commands::tokenizer::SourceLocation
[−]
[src]
pub struct SourceLocation { pub start: SourceOffset, pub end: SourceOffset, }
A range within a body of text.
Fields
start: SourceOffset
The start of the range.
end: SourceOffset
The end of the range.
Methods
impl SourceLocation
[src]
fn new(start: SourceOffset, end: SourceOffset) -> SourceLocation
Construct a SourceLocation
.
Trait Implementations
impl Clone for SourceLocation
[src]
fn clone(&self) -> SourceLocation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for SourceLocation
[src]
impl Debug for SourceLocation
[src]
impl PartialEq for SourceLocation
[src]
fn eq(&self, __arg_0: &SourceLocation) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SourceLocation) -> bool
This method tests for !=
.