Skip to main content

satisfies

Function satisfies 

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

Does version (a MAJOR.MINOR.PATCH string) satisfy constraint? An unparseable version never matches; an unparseable constraint matches nothing (the caller should surface “cannot resolve” rather than guess).