parse_rustc_version

Function parse_rustc_version 

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

Parses the output of rustc --version.

ยงErrors

Returns an error when version has an unexpected format.