(&mut self)
| 576 | |
| 577 | #[inline] |
| 578 | fn next(&mut self) -> Option<usize> { |
| 579 | loop { |
| 580 | if let Some(sub) = &mut self.sub { |
| 581 | if let Some(bit) = sub.next() { |
| 582 | return Some(CompoundBitSet::<T>::elem(self.word, bit)); |
| 583 | } else { |
| 584 | self.word += 1; |
| 585 | } |
| 586 | } |
| 587 | |
| 588 | self.sub = Some(self.bitset.elems.get(self.word)?.iter()); |
| 589 | } |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | #[cfg(test)] |
no test coverage detected