Struct rustc_version::VersionMeta [−][src]
pub struct VersionMeta { pub semver: Version, pub commit_hash: Option<String>, pub commit_date: Option<String>, pub build_date: Option<String>, pub channel: Channel, pub host: String, pub short_version_string: String, pub llvm_version: Option<LlvmVersion>, }
Expand description
Rustc version plus metadata like git short hash and build date.
Fields
semver: Version
Version of the compiler
commit_hash: Option<String>
Git short hash of the build of the compiler
commit_date: Option<String>
Commit date of the compiler
build_date: Option<String>
Build date of the compiler; this was removed between Rust 1.0.0 and 1.1.0.
channel: Channel
Release channel of the compiler
host: String
Host target triple of the compiler
short_version_string: String
Short version string of the compiler
llvm_version: Option<LlvmVersion>
Version of LLVM used by the compiler
Implementations
Returns the version metadata for cmd
, which should be a rustc
command.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for VersionMeta
impl Send for VersionMeta
impl Sync for VersionMeta
impl Unpin for VersionMeta
impl UnwindSafe for VersionMeta
Blanket Implementations
Mutably borrows from an owned value. Read more