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

Function parse_resource_kind

crates/hyperqueue/src/worker/parser.rs:158–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156}
157
158fn parse_resource_kind() -> impl CharParser<ResourceDescriptorKind> {
159 chumsky::primitive::choice((
160 parse_resource_group_x_notation(),
161 parse_resource_group(),
162 parse_resource_list(),
163 parse_resource_range(),
164 parse_resource_sum(),
165 ))
166 .labelled("resource kind")
167}
168
169pub fn is_valid_starting_resource_char(c: char) -> bool {
170 c.is_ascii_alphabetic()

Callers 2

parse_cpu_definitionFunction · 0.85

Calls 5

parse_resource_groupFunction · 0.85
parse_resource_listFunction · 0.85
parse_resource_rangeFunction · 0.85
parse_resource_sumFunction · 0.85

Tested by

no test coverage detected