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,
}

Rustc version plus metada like git short hash and build date.

Fields

Version of the compiler

Git short hash of the build of the compiler

Commit date of the compiler

Build date of the compiler; this was removed between Rust 1.0.0 and 1.1.0.

Release channel of the compiler

Host target triple of the compiler

Short version string of the compiler

Methods

impl VersionMeta
[src]

Returns the version metadata for cmd, which should be a rustc command.

Trait Implementations

impl Clone for VersionMeta
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for VersionMeta
[src]

Formats the value using the given formatter.

impl Eq for VersionMeta
[src]

impl PartialEq for VersionMeta
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for VersionMeta
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for VersionMeta
[src]

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for VersionMeta
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more