(mut self)
| 104 | } |
| 105 | |
| 106 | fn last(mut self) -> Option<Self::Item> { |
| 107 | // If already at the end, return None |
| 108 | if self.current_offset == self.end_offset { |
| 109 | return None; |
| 110 | } |
| 111 | |
| 112 | // Go to the one before the last bit |
| 113 | self.current_offset = self.end_offset - 1; |
| 114 | |
| 115 | // Return the last bit |
| 116 | self.next() |
| 117 | } |
| 118 | |
| 119 | fn max(self) -> Option<Self::Item> |
| 120 | where |
no test coverage detected