Struct hexgrid::Coordinate
[−]
[src]
pub struct Coordinate { // some fields omitted }
Methods
impl Coordinate
[src]
fn new() -> Result<Self, &'static str>
fn at(x: i64, y: i64, z: i64) -> Result<Self, &'static str>
fn neighbors(&self) -> Vec<Coordinate>
fn distance_to(&self, other: Coordinate) -> i64
Trait Implementations
impl PartialOrd for Coordinate
[src]
fn partial_cmp(&self, __arg_0: &Coordinate) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Coordinate) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Coordinate) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Coordinate) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Coordinate) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for Coordinate
[src]
fn eq(&self, __arg_0: &Coordinate) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Coordinate) -> bool
This method tests for !=
.