pub enum Move {
Quiet {
start: Square,
end: Square,
moving: PieceType,
},
Capture {
start: Square,
end: Square,
moving: PieceType,
},
Castle {
start: Square,
end: Square,
side: CastleSide,
},
DoublePawnPush {
start: Square,
end: Square,
},
EnPassant {
start: Square,
end: Square,
},
Promote {
start: Square,
end: Square,
target: PieceType,
},
PromoteCapture {
start: Square,
end: Square,
target: PieceType,
},
}Expand description
The Move enum represents a move on a chess board.
Variants§
Trait Implementations§
impl Copy for Move
impl Eq for Move
impl StructuralPartialEq for Move
Auto Trait Implementations§
impl Freeze for Move
impl RefUnwindSafe for Move
impl Send for Move
impl Sync for Move
impl Unpin for Move
impl UnwindSafe for Move
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