Skips the next `count` bytes. ## Panics - If `count` is larger than the remaining bytes in the input stream. - If `count` indexes into a multi-byte character.
(&mut self, count: usize)
| 160 | /// - If `count` is larger than the remaining bytes in the input stream. |
| 161 | /// - If `count` indexes into a multi-byte character. |
| 162 | pub(super) fn skip_bytes(&mut self, count: usize) { |
| 163 | #[cfg(debug_assertions)] |
| 164 | { |
| 165 | self.prev_char = self.chars.as_str()[..count] |
| 166 | .chars() |
| 167 | .next_back() |
| 168 | .unwrap_or('\0'); |
| 169 | } |
| 170 | |
| 171 | self.chars = self.chars.as_str()[count..].chars(); |
| 172 | } |
| 173 | |
| 174 | /// Skips to the end of the input stream. |
| 175 | pub(super) fn skip_to_end(&mut self) { |
no test coverage detected