Add 'BitboardIterator::new'

This commit is contained in:
Bruno BELANYI 2024-03-31 12:08:34 +01:00
parent 9cf5fc3852
commit 6feca16b61
2 changed files with 11 additions and 3 deletions

View file

@ -91,7 +91,7 @@ impl IntoIterator for Bitboard {
type Item = Square;
fn into_iter(self) -> Self::IntoIter {
BitboardIterator(self.0)
BitboardIterator::new(self)
}
}