[−][src]Trait pathfinder::Location
Enables the structure to be located by X or Y.
Required methods
fn position(&self) -> Coordinate
Retrieves the position Coordinates.
Provided methods
fn eq<L: Location>(&self, other: &L) -> bool
Returns if the positions are equal or not.
fn x(&self) -> i16
Retrieves the X coordinate.
fn y(&self) -> i16
Retrieves the Y coordinate.
fn sum(&self) -> i16
Returns the sum of the x and y value.
Implementors
impl Location for Coordinate
[src]
impl Location for Coordinate
fn position(&self) -> Coordinate | [src] |
fn eq<L: Location>(&self, other: &L) -> bool | [src] |
fn x(&self) -> i16 | [src] |
fn y(&self) -> i16 | [src] |
fn sum(&self) -> i16 | [src] |
impl Location for Group
[src]
impl Location for Group
fn position(&self) -> Coordinate | [src] |
fn eq<L: Location>(&self, other: &L) -> bool | [src] |
fn x(&self) -> i16 | [src] |
fn y(&self) -> i16 | [src] |
fn sum(&self) -> i16 | [src] |
impl Location for HL
[src]
impl Location for HL
fn position(&self) -> Coordinate | [src] |
fn eq<L: Location>(&self, other: &L) -> bool | [src] |
fn x(&self) -> i16 | [src] |
fn y(&self) -> i16 | [src] |
fn sum(&self) -> i16 | [src] |
impl Location for Node
[src]
impl Location for Node