[][src]Struct rustc_version::VersionMeta

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

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

impl VersionMeta[src]

pub fn for_command(mut cmd: Command) -> Result<VersionMeta>[src]

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

Trait Implementations

impl Clone for VersionMeta[src]

impl Debug for VersionMeta[src]

impl Eq for VersionMeta[src]

impl Hash for VersionMeta[src]

impl Ord for VersionMeta[src]

impl PartialEq<VersionMeta> for VersionMeta[src]

impl PartialOrd<VersionMeta> for VersionMeta[src]

impl StructuralEq for VersionMeta[src]

impl StructuralPartialEq for VersionMeta[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.