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: VersionVersion 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: CompilerChannelChannel which was configured for this version of rustc
host_triple: StringIdentifies 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 duplicate 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§impl PartialOrd for CompilerInfo
impl PartialOrd for CompilerInfo
impl Eq for CompilerInfo
impl StructuralPartialEq for CompilerInfo
Auto Trait Implementations§
impl Freeze for CompilerInfo
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