Function build_data::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 if it fails to parse version.