[][src]Function version_check::is_exact_version

pub fn is_exact_version(version: &str) -> Option<bool>

Checks that the running or installed rustc is exactly some version.

The format of version is a semantic version: 1.3.0, 1.15.0-beta, 1.14.0, 1.16.0-nightly, etc.

If the version cannot be retrieved or parsed, or if version could not be parsed, returns None. Otherwise returns true if the installed rustc is exactly version and false otherwise.