Consume the first character in the input.
(&mut self)
| 98 | |
| 99 | // Consume the first character in the input. |
| 100 | pub fn next_char(&mut self) -> Result<char> { |
| 101 | let ch = self.peek_char()?; |
| 102 | self.input = &self.input[ch.len_utf8()..]; |
| 103 | Ok(ch) |
| 104 | } |
| 105 | |
| 106 | pub fn is_empty(&self) -> bool { |
| 107 | self.input.is_empty() |
no test coverage detected