Skip to main content

version_cmp

Function version_cmp 

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

Compares two version-like tag strings in descending order: numerically newer comes first. Pairs with min_by/max_by callers that want the “latest” or “oldest” tag.