shakmaty::attacks
impl Iterator for Bitboard type Item = Square;
pub fn king_attacks(sq: Square) -> Bitboard
Looks up attacks for a king on sq.
sq