pub struct CompilerIdentity {
pub kind: CompilerKind,
pub version: Option<CompilerVersion>,
pub target: Option<String>,
pub raw_version_line: String,
}Expand description
Detected identity of one C/C++ compiler.
Fields§
§kind: CompilerKind§version: Option<CompilerVersion>Parsed version, when the version-output line was
recognized. None when the compiler emitted output Cabin
could not parse.
target: Option<String>Optional default target triple as the compiler reported it (the “Target: …” line from Clang, or an analogous GCC line).
raw_version_line: StringFirst non-empty line of combined --version output, kept
for diagnostics. Truncated to a sensible length.
Implementations§
Trait Implementations§
Source§impl Clone for CompilerIdentity
impl Clone for CompilerIdentity
Source§fn clone(&self) -> CompilerIdentity
fn clone(&self) -> CompilerIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompilerIdentity
impl Debug for CompilerIdentity
Source§impl<'de> Deserialize<'de> for CompilerIdentity
impl<'de> Deserialize<'de> for CompilerIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompilerIdentity
impl PartialEq for CompilerIdentity
Source§fn eq(&self, other: &CompilerIdentity) -> bool
fn eq(&self, other: &CompilerIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompilerIdentity
impl Serialize for CompilerIdentity
impl Eq for CompilerIdentity
impl StructuralPartialEq for CompilerIdentity
Auto Trait Implementations§
impl Freeze for CompilerIdentity
impl RefUnwindSafe for CompilerIdentity
impl Send for CompilerIdentity
impl Sync for CompilerIdentity
impl Unpin for CompilerIdentity
impl UnsafeUnpin for CompilerIdentity
impl UnwindSafe for CompilerIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.