pub fn parse_range<V>(
range: &Range,
parse_bound: impl Fn(&str) -> Option<V>,
) -> ParsedRange<V>Expand description
Pre-parse a string-bound Range into a ParsedRange once, using the ecosystem’s
bound parser (the same parse_bound closure the string matcher takes, including its
"0" convention). Do this at DB load so a popular advisory’s bounds are parsed once per
load rather than once per repo scanned.