Enum shogi::moves::Move [] [src]

pub enum Move {
    Normal {
        from: Square,
        to: Square,
        promote: bool,
    },
    Drop {
        to: Square,
        piece_type: PieceType,
    },
}

Represents a move which either is a normal move or a drop move.

Variants

Fields of Normal

Fields of Drop

Methods

impl Move
[src]

Creates a new instance of Move from SFEN formatted string.

Trait Implementations

impl Debug for Move
[src]

Formats the value using the given formatter.

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 Eq for Move
[src]

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 Display for Move
[src]

Formats the value using the given formatter. Read more