Struct build_info::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,
pub target_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
target_triple: String
Identifies the target architecture for which the crate is being compiled
Trait Implementations
sourceimpl Clone for CompilerInfo
impl Clone for CompilerInfo
sourcepub fn clone(&self) -> CompilerInfo
pub fn clone(&self) -> CompilerInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompilerInfo
impl Debug for CompilerInfo
sourceimpl<'de> Deserialize<'de> for CompilerInfo
impl<'de> Deserialize<'de> for CompilerInfo
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<CompilerInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
sourceimpl Display for CompilerInfo
impl Display for CompilerInfo
sourceimpl Hash for CompilerInfo
impl Hash for CompilerInfo
sourceimpl Ord for CompilerInfo
impl Ord for CompilerInfo
sourceimpl PartialEq<CompilerInfo> for CompilerInfo
impl PartialEq<CompilerInfo> for CompilerInfo
sourcepub fn eq(&self, other: &CompilerInfo) -> bool
pub fn eq(&self, other: &CompilerInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &CompilerInfo) -> bool
pub fn ne(&self, other: &CompilerInfo) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CompilerInfo> for CompilerInfo
impl PartialOrd<CompilerInfo> for CompilerInfo
sourcepub fn partial_cmp(&self, other: &CompilerInfo) -> Option<Ordering>
pub fn partial_cmp(&self, other: &CompilerInfo) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serialize for CompilerInfo
impl Serialize for CompilerInfo
sourcepub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more