Enum racer::Location [−][src]
pub enum Location { Point(BytePos), Coords(Coordinate), }
The cursor position used by public search methods
Variants
Point(BytePos)
A byte offset in the file
Coords(Coordinate)
1-based line and column indices.
Trait Implementations
impl Debug for Location
[src]
impl Debug for Location
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Location
[src]
impl Clone for Location
fn clone(&self) -> Location
[src]
fn clone(&self) -> Location
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Location
[src]
impl Copy for Location
impl From<BytePos> for Location
[src]
impl From<BytePos> for Location
impl From<usize> for Location
[src]
impl From<usize> for Location
impl From<Coordinate> for Location
[src]
impl From<Coordinate> for Location
fn from(val: Coordinate) -> Location
[src]
fn from(val: Coordinate) -> Location
Performs the conversion.