Key

Type Alias Key 

Source
pub type Key<'a> = (&'a PieceSets, &'a Color, &'a Castling, &'a Option<Square>);
Expand description

Key contains all data needed to generate a hash.

Trait Implementations§

Source§

impl<'a> From<&'a Position> for Key<'a>

Convert a Position reference into a Key.

Source§

fn from(pos_ref: &'a Position) -> Self

Converts to this type from the input type.