pub enum UciMoveType {
Pawn {
take: bool,
check: bool,
promotion: Option<PieceType>,
},
CastleShort {
piece_color: PieceColor,
take: bool,
check: bool,
},
CastleLong {
piece_color: PieceColor,
take: bool,
check: bool,
},
Default {
piece_type: PieceType,
specified_rank: bool,
specified_file: bool,
take: bool,
check: bool,
},
}Variants§
Trait Implementations§
Source§impl Clone for UciMoveType
impl Clone for UciMoveType
Source§fn clone(&self) -> UciMoveType
fn clone(&self) -> UciMoveType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UciMoveType
impl Debug for UciMoveType
Source§impl PartialEq for UciMoveType
impl PartialEq for UciMoveType
impl Copy for UciMoveType
impl StructuralPartialEq for UciMoveType
Auto Trait Implementations§
impl Freeze for UciMoveType
impl RefUnwindSafe for UciMoveType
impl Send for UciMoveType
impl Sync for UciMoveType
impl Unpin for UciMoveType
impl UnwindSafe for UciMoveType
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