pub type Key<'a> = (&'a PieceSets, &'a Color, &'a Castling, &'a Option<Square>);
Key contains all data needed to generate a hash.
Convert a Position reference into a Key.