Struct board_game_geom::Move
[−]
[src]
pub struct Move(pub i32, pub i32);
A difference between two Point
s.
Point(y0, x0)
- Point(y1, x1) ==
Move(y0 - y1, x0 - x1)`
Trait Implementations
impl Clone for Move
[src]
fn clone(&self) -> Move
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 Move
[src]
impl Debug for Move
[src]
impl Eq for Move
[src]
impl PartialEq for Move
[src]
fn eq(&self, __arg_0: &Move) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Move) -> bool
This method tests for !=
.
impl Hash for Move
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Add<Move> for Move
[src]
type Output = Move
The resulting type after applying the +
operator
fn add(self, other: Move) -> Move
The method for the +
operator
impl Sub<Move> for Move
[src]
type Output = Move
The resulting type after applying the -
operator
fn sub(self, other: Move) -> Move
The method for the -
operator
impl Neg for Move
[src]
type Output = Move
The resulting type after applying the -
operator
fn neg(self) -> Move
The method for the unary -
operator