parse_rustc_channel

Function parse_rustc_channel 

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

Gets the channel from the rustc version string.

ยงErrors

Returns an error when version has an unexpected format.