Skip to main content

parse_range

Function parse_range 

Source
pub fn parse_range(input: &str) -> Result<Vec<usize>, Error>
Expand description

Parses positive one-based values and inclusive ranges.

Components are comma-separated. Whitespace around components and range endpoints is ignored. The result is sorted and deduplicated. At most 100,000 values may be requested across all components before deduplication.