(&mut self)
| 362 | |
| 363 | #[inline] |
| 364 | fn next(&mut self) -> Option<Self::Item> { |
| 365 | while self.current_word == 0 { |
| 366 | self.current_word = *self.set.storage.get(self.next_index)?; |
| 367 | self.next_index += 1; |
| 368 | } |
| 369 | |
| 370 | let low_bit = self.current_word.trailing_zeros(); |
| 371 | self.current_word &= self.current_word - 1; |
| 372 | let bit = (self.next_index - 1) * Word::BITS as usize + low_bit as usize; |
| 373 | Some(T::new(bit)) |
| 374 | } |
| 375 | } |
no test coverage detected