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

Function all_consuming

crates/hyperqueue/src/common/parser2.rs:289–291  ·  view source on GitHub ↗

Return a parser that will fail if there is any input following the text parsed by the provided parser.

(parser: impl CharParser<T>)

Source from the content-addressed store, hash-verified

287/// Return a parser that will fail if there is any input following the text parsed by the
288/// provided parser.
289pub fn all_consuming<T>(parser: impl CharParser<T>) -> impl CharParser<T> {
290 parser.then_ignore(end())
291}
292
293#[cfg(test)]
294mod tests {

Callers 8

parse_resource_requestFunction · 0.85
parse_allocation_requestFunction · 0.85
parse_stdio_defFunction · 0.85
parse_cpu_definitionFunction · 0.85
consume_allFunction · 0.85
parse_array_innerFunction · 0.85
parse_hms_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected