Enum racer::Location
[−]
[src]
pub enum Location { Point(usize), Coords(Coordinate), }
The cursor position used by public search methods
Variants
Point(usize)
A byte offset in the file
Coords(Coordinate)
1-based line and column indices.
Trait Implementations
impl Debug for Location
[src]
impl Clone for Location
[src]
fn clone(&self) -> Location
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 Location
[src]
impl From<usize> for Location
[src]
impl From<Coordinate> for Location
[src]
fn from(val: Coordinate) -> Location
Performs the conversion.