Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> Result<Vec<u64>, ParseError>
Expand description

Parse a compact range string like "1,3-5,7" into the expanded values, preserving input order.

An empty (or whitespace-only) input yields an empty Vec.

ยงErrors

Returns ParseError for empty parts, non-numeric parts, malformed ranges, or descending ranges.