Look at the first character in the input without consuming it.
(&self)
| 90 | impl<'de> Deserializer<'de> { |
| 91 | // Look at the first character in the input without consuming it. |
| 92 | pub fn peek_char(&self) -> Result<char> { |
| 93 | self.input |
| 94 | .chars() |
| 95 | .next() |
| 96 | .ok_or_else(|| eyre::eyre!("end of input")) |
| 97 | } |
| 98 | |
| 99 | // Consume the first character in the input. |
| 100 | pub fn next_char(&mut self) -> Result<char> { |
no outgoing calls
no test coverage detected