pub trait ZobristHash {
    // Required method
    fn zobrist_hash<V: ZobristValue>(&self, mode: EnPassantMode) -> V;
}
Expand description

Supports Zobrist hashing.

Required Methods§

source

fn zobrist_hash<V: ZobristValue>(&self, mode: EnPassantMode) -> V

Computes the Zobrist hash of the position from scratch. The hash includes the position, except halfmove clock and fullmove number.

Object Safety§

This trait is not object safe.

Implementors§