pub enum MoveType {
EnPassant(usize),
Promotion(PieceType, Option<PieceType>),
Castle(CastleMove),
DoublePawnPush,
PawnPush,
Capture(PieceType),
Normal,
None,
}Variants§
EnPassant(usize)
Promotion(PieceType, Option<PieceType>)
Castle(CastleMove)
DoublePawnPush
PawnPush
Capture(PieceType)
Normal
None
Implementations§
Trait Implementations§
impl Copy for MoveType
impl Eq for MoveType
impl StructuralPartialEq for MoveType
Auto Trait Implementations§
impl Freeze for MoveType
impl RefUnwindSafe for MoveType
impl Send for MoveType
impl Sync for MoveType
impl Unpin for MoveType
impl UnwindSafe for MoveType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more