Add chessfriend_bitboard::IterationDirection Make BitBoard::occupied_squares() take an IterationDirection and return an iterator corresponding to the direction. Do the same for ::first_occupied_square().
6 lines
93 B
Rust
6 lines
93 B
Rust
#[derive(Default)]
|
|
pub enum IterationDirection {
|
|
#[default]
|
|
Leading,
|
|
Trailing,
|
|
}
|