Enum shakmaty::Move [] [src]

pub enum Move {
    Normal {
        role: Role,
        from: Square,
        capture: Option<Role>,
        to: Square,
        promotion: Option<Role>,
    },
    EnPassant {
        from: Square,
        to: Square,
    },
    Castle {
        king: Square,
        rook: Square,
    },
    Put {
        role: Role,
        to: Square,
    },
}

Information about a move.

Variants

Fields of Normal

Fields of EnPassant

Fields of Castle

Fields of Put

Methods

impl Move
[src]

Trait Implementations

impl Clone for Move
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

impl Display for Move
[src]

Formats the value using the given formatter. Read more

impl<'a> Into<Uci> for &'a Move
[src]

Performs the conversion.

impl Into<Uci> for Move
[src]

Performs the conversion.