Function strverscmp

Source
pub fn strverscmp(a: &str, b: &str) -> Ordering
Expand description

Compare two version strings.

ยงExamples

use std::cmp::Ordering;

use uapi_version::strverscmp;

assert_eq!(strverscmp("1.0.0", "2.0.0"), Ordering::Less)