Trait shakmaty::zobrist::ZobristValue
source · pub trait ZobristValue: BitXorAssign + Default + Copy {
// Required methods
fn zobrist_for_piece(square: Square, piece: Piece) -> Self;
fn zobrist_for_white_turn() -> Self;
fn zobrist_for_castling_right(color: Color, side: CastlingSide) -> Self;
fn zobrist_for_en_passant_file(file: File) -> Self;
fn zobrist_for_remaining_checks(
color: Color,
remaining: RemainingChecks
) -> Self;
fn zobrist_for_promoted(square: Square) -> Self;
fn zobrist_for_pocket(color: Color, role: Role, pieces: u8) -> Self;
}
Expand description
Integer type that can be returned as a Zobrist hash.
Required Methods§
fn zobrist_for_piece(square: Square, piece: Piece) -> Self
fn zobrist_for_white_turn() -> Self
fn zobrist_for_castling_right(color: Color, side: CastlingSide) -> Self
fn zobrist_for_en_passant_file(file: File) -> Self
fn zobrist_for_remaining_checks( color: Color, remaining: RemainingChecks ) -> Self
fn zobrist_for_promoted(square: Square) -> Self
fn zobrist_for_pocket(color: Color, role: Role, pieces: u8) -> Self
Object Safety§
This trait is not object safe.