Enum pleco::core::piece_move::MoveType [−][src]
#[repr(u16)]pub enum MoveType { Normal, Castle, EnPassant, Promotion, }
A Subset of MoveFlag
, used to determine the overall classification of a move.
Variants
Normal
The move is "Normal", So its not a castle, promotion, or en-passant.
Castle
The move is castling move.
EnPassant
The move is an en-passant capture.
Promotion
The move is a promotion.
Trait Implementations
impl Copy for MoveType
[src]
impl Copy for MoveType
impl Clone for MoveType
[src]
impl Clone for MoveType
fn clone(&self) -> MoveType
[src]
fn clone(&self) -> MoveType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for MoveType
[src]
impl PartialEq for MoveType
fn eq(&self, other: &MoveType) -> bool
[src]
fn eq(&self, other: &MoveType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Debug for MoveType
[src]
impl Debug for MoveType