Skip to main content

parse_range

Function parse_range 

Source
pub fn parse_range<T>(
    value: &str,
) -> Result<(Option<T>, Option<T>), ParseRangeError>
where T: FromStr, T::Err: Display,
Expand description

Parses an inclusive range string into optional minimum and maximum bounds.

ยงErrors

Returns an error if the range has too many separators or either bound cannot be parsed as T.