Function shrimple_parser::parse_exact

source ·
pub fn parse_exact(prefix: &str) -> impl Parser<'_, &str>
Expand description

Parses exactly 1 string prefix from the input.

§Errors

The returned parser returns a recoverable error if the input doesn’t start with prefix.