Struct cozy_chess::Move
source · pub struct Move {
pub from: Square,
pub to: Square,
pub promotion: Option<Piece>,
}
Expand description
A chess move.
Fields§
§from: Square
The square to move the piece from.
to: Square
The square to move the piece to.
promotion: Option<Piece>
The promotion piece, if it exists.
Trait Implementations§
source§impl PartialEq for Move
impl PartialEq for Move
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