pub struct CastleMove {
pub rook_from: usize,
pub rook_to: usize,
pub king_squares: (usize, usize, usize),
}Fields§
§rook_from: usize§rook_to: usize§king_squares: (usize, usize, usize)Implementations§
Source§impl CastleMove
impl CastleMove
pub const fn get_castle_side(&self) -> CastleSide
Trait Implementations§
Source§impl Clone for CastleMove
impl Clone for CastleMove
Source§fn clone(&self) -> CastleMove
fn clone(&self) -> CastleMove
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 CastleMove
impl Debug for CastleMove
Source§impl PartialEq for CastleMove
impl PartialEq for CastleMove
impl Copy for CastleMove
impl Eq for CastleMove
impl StructuralPartialEq for CastleMove
Auto Trait Implementations§
impl Freeze for CastleMove
impl RefUnwindSafe for CastleMove
impl Send for CastleMove
impl Sync for CastleMove
impl Unpin for CastleMove
impl UnwindSafe for CastleMove
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