pub fn cmp_versions(ver1: &str, ver2: &str) -> i32Expand description
Compares two package versions, ver1 and ver2. The returned
integer’s value is mapped to one of the following integers:
- Less than 0:
ver1is less thanver2. - Equal to 0:
ver1is equal tover2. - Greater than 0:
ver1is greater thanver2.
Unless you have a specific need for otherwise, you should probably
use crate::util::cmp_versions instead.