(&mut self)
| 59 | |
| 60 | #[inline] |
| 61 | fn next(&mut self) -> Option<Self::Item> { |
| 62 | if self.current_offset == self.end_offset { |
| 63 | return None; |
| 64 | } |
| 65 | // Safety: |
| 66 | // offsets in bounds |
| 67 | let v = unsafe { get_bit_raw(self.buffer.as_ptr(), self.current_offset) }; |
| 68 | self.current_offset += 1; |
| 69 | Some(v) |
| 70 | } |
| 71 | |
| 72 | fn size_hint(&self) -> (usize, Option<usize>) { |
| 73 | let remaining_bits = self.end_offset - self.current_offset; |