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 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<'de> Deserialize<'de> for CompilerInfo
impl<'de> Deserialize<'de> for CompilerInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompilerInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompilerInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Source§impl Serialize for CompilerInfo
impl Serialize for CompilerInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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