(&mut self)
| 145 | |
| 146 | impl DoubleEndedIterator for BitIterator<'_> { |
| 147 | fn next_back(&mut self) -> Option<Self::Item> { |
| 148 | if self.current_offset == self.end_offset { |
| 149 | return None; |
| 150 | } |
| 151 | self.end_offset -= 1; |
| 152 | // Safety: |
| 153 | // offsets in bounds |
| 154 | let v = unsafe { get_bit_raw(self.buffer.as_ptr(), self.end_offset) }; |
| 155 | Some(v) |
| 156 | } |
| 157 | |
| 158 | fn nth_back(&mut self, n: usize) -> Option<Self::Item> { |
| 159 | // Check if we can advance to the desired offset. |
no test coverage detected