parse_years_range

Function parse_years_range 

Source
fn parse_years_range(s: &str, valid_years: &[u32]) -> Result<Vec<u32>>
Expand description

Parse a year string that is defined as a range, selecting the valid years within that range.

It should be of the form start..end. If either of the limits are omitted, they will default to the first and last years of the valid_years. If both limits are missing, this is equivalent to passing all.