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
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
Methods
impl VersionMeta
[src]
impl VersionMeta
pub fn for_command(cmd: Command) -> Result<VersionMeta>
[src]
pub fn for_command(cmd: Command) -> Result<VersionMeta>
Returns the version metadata for cmd
, which should be a rustc
command.
Trait Implementations
impl Clone for VersionMeta
[src]
impl Clone for VersionMeta
fn clone(&self) -> VersionMeta
[src]
fn clone(&self) -> VersionMeta
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for VersionMeta
[src]
impl Debug for VersionMeta
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for VersionMeta
[src]
impl Eq for VersionMeta
impl PartialEq for VersionMeta
[src]
impl PartialEq for VersionMeta
fn eq(&self, other: &VersionMeta) -> bool
[src]
fn eq(&self, other: &VersionMeta) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &VersionMeta) -> bool
[src]
fn ne(&self, other: &VersionMeta) -> bool
This method tests for !=
.
impl Ord for VersionMeta
[src]
impl Ord for VersionMeta
fn cmp(&self, other: &VersionMeta) -> Ordering
[src]
fn cmp(&self, other: &VersionMeta) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for VersionMeta
[src]
impl PartialOrd for VersionMeta
fn partial_cmp(&self, other: &VersionMeta) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &VersionMeta) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &VersionMeta) -> bool
[src]
fn lt(&self, other: &VersionMeta) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &VersionMeta) -> bool
[src]
fn le(&self, other: &VersionMeta) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &VersionMeta) -> bool
[src]
fn gt(&self, other: &VersionMeta) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &VersionMeta) -> bool
[src]
fn ge(&self, other: &VersionMeta) -> bool
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]
impl Hash for VersionMeta
Auto Trait Implementations
impl Send for VersionMeta
impl Send for VersionMeta
impl Sync for VersionMeta
impl Sync for VersionMeta