fn xor(&mut self, piece: Piece, bb: BitBoard, color: Color) {
        unsafe {
            *self.pieces.get_unchecked_mut(piece.to_index()) ^= bb;
            *self.color_combined.get_unchecked_mut(color.to_index()) ^= bb;
            self.combined ^= bb;
            self.hash ^= Zobrist::piece(piece, bb.to_square(), color);
        }
    }
/// Add or remove a piece from the bitboards in this struct.
Add or remove a piece from the bitboards in this struct.
Add or remove a piece from the bitboards in this struct .
fn xor(&mut self, piece: Piece, bb: BitBoard, color: Color) {
        unsafe {
            *self.pieces.get_unchecked_mut(piece.to_index()) ^= bb;
            *self.color_combined.get_unchecked_mut(color.to_index()) ^= bb;
            self.combined ^= bb;
            self.hash ^= Zobrist::piece(piece, bb.to_square(), color);
        }
    }
fn xor ( & mut self , piece : Piece , bb : BitBoard , color : Color ) { unsafe { * self . pieces . get_unchecked_mut ( piece . to_index ( ) ) ^= bb ; * self . color_combined . get_unchecked_mut ( color . to_index ( ) ) ^= bb ; self . combined ^= bb ; self . hash ^= Zobrist :: piece ( piece , bb . to_square ( ) , color ) ; } }
Add or remove a piece from the bitboards in this struct.
Add or remove a piece from the bitboards in this struct .
&mut self
piece
Piece
bb
BitBoard
color
Color
&mut self
piece
Piece
bb
BitBoard
color
Color