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

Function parse_array

crates/hyperqueue/src/common/arrayparser.rs:58–60  ·  view source on GitHub ↗

Parses integer ranges separated by commas. Makes sure that the ranges do not overlap.

(input: &str)

Source from the content-addressed store, hash-verified

56/// Parses integer ranges separated by commas.
57/// Makes sure that the ranges do not overlap.
58pub fn parse_array(input: &str) -> anyhow::Result<IntArray> {
59 parse_array_inner().parse_text(input)
60}
61
62#[cfg(test)]
63mod test {

Callers 2

deserialize_array_optFunction · 0.85
from_strMethod · 0.85

Calls 2

parse_array_innerFunction · 0.85
parse_textMethod · 0.80

Tested by

no test coverage detected