Struct board_game_geom::Move [] [src]

pub struct Move(pub i32, pub i32);

A difference between two Points.

Point(y0, x0) - Point(y1, x1) ==Move(y0 - y1, x0 - x1)`

Trait Implementations

impl Clone for Move
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Move
[src]

impl Debug for Move
[src]

Formats the value using the given formatter.

impl Eq for Move
[src]

impl PartialEq for Move
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Move
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Add<Move> for Move
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Move> for Move
[src]

The resulting type after applying the - operator

The method for the - operator

impl Neg for Move
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl Mul<i32> for Move
[src]

The resulting type after applying the * operator

The method for the * operator