Advances the scanner one character forward
(&mut self)
| 260 | |
| 261 | // Advances the scanner one character forward |
| 262 | fn advance(&mut self) -> Option<char> { |
| 263 | match self.iter.next() { |
| 264 | Some((pos, ch)) => { |
| 265 | self.current = pos + ch.len_utf8(); |
| 266 | Some(ch) |
| 267 | } |
| 268 | None => None, |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | // Peeks at the next character without consuming it |
| 273 | fn peek(&mut self) -> Option<char> { |
no test coverage detected