Struct build_info_common::CompilerInfo
source · pub struct CompilerInfo {
pub version: Version,
pub commit_id: Option<String>,
pub commit_date: Option<NaiveDate>,
pub channel: CompilerChannel,
pub host_triple: String,
}
Expand description
rustc
version and configuration
Fields§
§version: Version
Version of the current rustc
commit_id: Option<String>
Commit hash from which rustc
was built
commit_date: Option<NaiveDate>
Date on which rustc
was built
channel: CompilerChannel
Channel which was configured for this version of rustc
host_triple: String
Identifies the host on which rustc
was running
Trait Implementations§
source§impl Clone for CompilerInfo
impl Clone for CompilerInfo
source§fn clone(&self) -> CompilerInfo
fn clone(&self) -> CompilerInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompilerInfo
impl Debug for CompilerInfo
source§impl Display for CompilerInfo
impl Display for CompilerInfo
source§impl Hash for CompilerInfo
impl Hash for CompilerInfo
source§impl Ord for CompilerInfo
impl Ord for CompilerInfo
source§fn cmp(&self, other: &CompilerInfo) -> Ordering
fn cmp(&self, other: &CompilerInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CompilerInfo
impl PartialEq for CompilerInfo
source§fn eq(&self, other: &CompilerInfo) -> bool
fn eq(&self, other: &CompilerInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompilerInfo
impl PartialOrd for CompilerInfo
source§fn partial_cmp(&self, other: &CompilerInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &CompilerInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CompilerInfo
impl StructuralPartialEq for CompilerInfo
Auto Trait Implementations§
impl RefUnwindSafe for CompilerInfo
impl Send for CompilerInfo
impl Sync for CompilerInfo
impl Unpin for CompilerInfo
impl UnwindSafe for CompilerInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more