[][src]Enum pleco::core::piece_move::MoveFlag

pub enum MoveFlag {
    Promotion {
        capture: bool,
        prom: PieceType,
    },
    Castle {
        king_side: bool,
    },
    DoublePawnPush,
    Capture {
        ep_capture: bool,
    },
    QuietMove,
}

Selected Meta-Data to accompany each move.

Variants

Promotion

The move is a promotion.

Fields of Promotion

capture: bool

Marks the move as a capturing promotion.

prom: PieceType

The piece that the move promotes to.

Castle

The move is a castle.

Fields of Castle

king_side: bool

Determines if the castle is a castle on the king side.

DoublePawnPush

The move is a double pawn push.

Capture

The move is a capturing move.

Fields of Capture

ep_capture: bool

Marks this move as an en-passant capture.

QuietMove

The move is a quiet move. This means its not a capture, promotion, castle, or double-pawn push.

Trait Implementations

impl Copy for MoveFlag[src]

impl PartialEq<MoveFlag> for MoveFlag[src]

impl Clone for MoveFlag[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MoveFlag

impl Sync for MoveFlag

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.