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§

source

fn zobrist_for_piece(square: Square, piece: Piece) -> Self

source

fn zobrist_for_white_turn() -> Self

source

fn zobrist_for_castling_right(color: Color, side: CastlingSide) -> Self

source

fn zobrist_for_en_passant_file(file: File) -> Self

source

fn zobrist_for_remaining_checks( color: Color, remaining: RemainingChecks ) -> Self

source

fn zobrist_for_promoted(square: Square) -> Self

source

fn zobrist_for_pocket(color: Color, role: Role, pieces: u8) -> Self

Object Safety§

This trait is not object safe.

Implementors§