Struct chess::ChessMove [] [src]

pub struct ChessMove { /* fields omitted */ }

Represent a ChessMove in memory

Methods

impl ChessMove
[src]

Create a new chess move, given a source Square, a destination Square, and an optional promotion Piece

Get the source square (square the piece is currently on).

Get the destination square (square the piece is going to).

Get the promotion piece (maybe).

Trait Implementations

impl Clone for ChessMove
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ChessMove
[src]

impl Eq for ChessMove
[src]

impl PartialOrd for ChessMove
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for ChessMove
[src]

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

This method tests for !=.

impl Display for ChessMove
[src]

Formats the value using the given formatter. Read more

impl Ord for ChessMove
[src]

This method returns an Ordering between self and other. Read more