Skip to main content

allows

Function allows 

Source
pub fn allows(
    constraints: &[(&str, &Constraint)],
    version: &Version,
    excluded: &HashSet<Version>,
) -> bool
Expand description

Whether version meets every semver range in constraints and is not in excluded. Constraint::Latest allows any version; a Constraint::RefPin must have been settled already, so it is not read here.