Trait shakmaty::zobrist::ZobristHash
source · pub trait ZobristHash {
// Required method
fn zobrist_hash<V: ZobristValue>(&self, mode: EnPassantMode) -> V;
}
Expand description
Supports Zobrist hashing.
Required Methods§
sourcefn zobrist_hash<V: ZobristValue>(&self, mode: EnPassantMode) -> V
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.