pub fn from_version_string(s: &str) -> Option<MetadataVersion>Expand description
Resolve a version string to a level.
The function accepts both the exact X.Y-IVn form and the short X.Y form.
The short form resolves to the highest level within that minor, which
matches MetadataVersion.fromVersionString.