parse_rustc_semver

Function parse_rustc_semver 

Source
pub fn parse_rustc_semver(version: impl AsRef<str>) -> Result<String, String>
Expand description

Gets the dotted-numeric version from the rustc version string.

Example: "1.53.0"

ยงErrors

Returns an error when version has an unexpected format.