Skip to main content

version_order

Function version_order 

Source
pub fn version_order(left: &str, right: &str) -> Ordering
Expand description

Semantic version order over two tags, with or without the leading v.

Numeric components compare as numbers, a release outranks its own prerelease, and prerelease identifiers compare the way semver says. Anything the grammar cannot read falls back to text order.