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

Method parse_text

crates/hyperqueue/src/common/parser2.rs:94–97  ·  view source on GitHub ↗
(&self, input: &str)

Source from the content-addressed store, hash-verified

92// Parsing infrastructure
93pub trait CharParser<T>: Parser<char, T, Error = ParseError> + Sized + Clone {
94 fn parse_text(&self, input: &str) -> anyhow::Result<T> {
95 self.parse(input)
96 .map_err(|errors| anyhow!("{}", format_errors_cli(input, errors)))
97 }
98}
99impl<T, P> CharParser<T> for P where P: Parser<char, T, Error = ParseError> + Clone {}
100

Callers 12

parse_resource_requestFunction · 0.80
parse_allocation_requestFunction · 0.80
parse_stdio_defFunction · 0.80
parse_cpu_definitionFunction · 0.80
expect_parser_errorFunction · 0.80
parse_arrayFunction · 0.80
parse_hms_timeFunction · 0.80
parse_hms_secondsFunction · 0.80
parse_hms_minutesFunction · 0.80
parse_hms_hoursFunction · 0.80

Implementers 1

parser2.rscrates/hyperqueue/src/common/parser2.r

Calls 1

parseMethod · 0.80

Tested by 5

expect_parser_errorFunction · 0.64
parse_hms_secondsFunction · 0.64
parse_hms_minutesFunction · 0.64
parse_hms_hoursFunction · 0.64