Skip to main content

satisfies

Function satisfies 

Source
pub fn satisfies(version: &str, range: &str) -> bool
Expand description

Checks whether version satisfies a NuGet interval-notation range (spec §2).

Supports bare floors (1.0), exact pins ([1.0]), open/closed minimums and maximums ([1.0,), (,1.0], …), and bounded intervals ([1.0,2.0), …). Returns false for unparseable ranges rather than panicking. Convenience wrapper around parse_range + range_contains for callers that don’t need to test more than one candidate against the same range.