Struct pathfinder::Coordinate
[−]
[src]
pub struct Coordinate { pub x: i16, pub y: i16, }
Holds a position used for Nodes and Groups.
Fields
x: i16
y: i16
Methods
impl Coordinate
[src]
pub fn new(x: i16, y: i16) -> Coordinate
[src]
Constructs a Coordinate struct.
impl Coordinate
[src]
Trait Implementations
impl Ord for Coordinate
[src]
fn cmp(&self, other: &Coordinate) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for Coordinate
[src]
fn partial_cmp(&self, other: &Coordinate) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
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, other: &Coordinate) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Add for Coordinate
[src]
type Output = Coordinate
The resulting type after applying the +
operator.
fn add(self, other: Coordinate) -> Coordinate
[src]
Performs the +
operation.
impl Debug for Coordinate
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Coordinate
[src]
impl Copy for Coordinate
[src]
impl Clone for Coordinate
[src]
fn clone(&self) -> Coordinate
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more