Struct commands::tokenizer::SourceLocation [] [src]

pub struct SourceLocation {
    pub start: SourceOffset,
    pub end: SourceOffset,
}

A range within a body of text.

Fields

start

The start of the range.

end

The end of the range.

Methods

impl SourceLocation

fn new(start: SourceOffset, end: SourceOffset) -> SourceLocation

Construct a SourceLocation.

Trait Implementations

Derived Implementations

impl PartialEq for SourceLocation

fn eq(&self, __arg_0: &SourceLocation) -> bool

fn ne(&self, __arg_0: &SourceLocation) -> bool

impl Debug for SourceLocation

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

impl Copy for SourceLocation

impl Clone for SourceLocation

fn clone(&self) -> SourceLocation

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