MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / consume_all

Function consume_all

crates/hyperqueue/src/common/parser.rs:211–216  ·  view source on GitHub ↗

Take a parser and input and return Result with a formatted error.

(f: F, input: &'a str)

Source from the content-addressed store, hash-verified

209
210/// Take a parser and input and return Result with a formatted error.
211pub fn consume_all<'a, O, F>(f: F, input: &'a str) -> anyhow::Result<O>
212where
213 F: FnMut(&'a str) -> NomResult<'a, O>,
214{
215 map_parse_result(all_consuming(f)(input).map(|r| r.1), input)
216}
217
218fn p_integer_string(input: &str) -> NomResult<'_, String> {
219 let parser = tuple((

Callers 4

parse_argsFunction · 0.85
parse_rangeFunction · 0.85
check_parse_errorFunction · 0.85

Calls 2

map_parse_resultFunction · 0.85
all_consumingFunction · 0.85

Tested by 1

check_parse_errorFunction · 0.68