Peeks the next character from the input stream without consuming it. Returns [`EOF_CHAR`] if the position is past the end of the file.
(&self)
| 40 | /// Peeks the next character from the input stream without consuming it. |
| 41 | /// Returns [`EOF_CHAR`] if the position is past the end of the file. |
| 42 | pub(super) fn first(&self) -> char { |
| 43 | self.chars.clone().next().unwrap_or(EOF_CHAR) |
| 44 | } |
| 45 | |
| 46 | /// Peeks the second character from the input stream without consuming it. |
| 47 | /// Returns [`EOF_CHAR`] if the position is past the end of the file. |
no test coverage detected