Function shrimple_parser::parse_char

source ·
pub fn parse_char<'input>(ch: char) -> impl Parser<'input, char>
Expand description

Parses exactly 1 character ch from the input. See also parse_any_char

§Errors

The returned parser returns a recoverable error if the input is empty or the 1st character isn’t ch.