pub fn parse_with<T>(
input: &str,
grammar: impl FnOnce(&mut Cursor<'_>) -> Result<T, ParseError>,
) -> Result<T, ParseError>Expand description
Run a grammar over the whole of input. Anything it leaves behind is an
error, so a grammar cannot quietly match a prefix.