pub struct CompilerWrapperIdentity {
pub kind: CompilerWrapperKind,
pub version: Option<CompilerVersion>,
pub raw_version_line: String,
}Expand description
Identity captured from a wrapper executable’s --version
output. Populated by cabin-toolchain::detect_compiler_wrapper
and surfaced through metadata.
Fields§
§kind: CompilerWrapperKind§version: Option<CompilerVersion>Parsed numeric version (Some when the wrapper printed a
recognizable version string).
raw_version_line: StringFirst non-empty line of the captured --version output,
preserved verbatim so users can see exactly what the
wrapper reported.
Implementations§
Source§impl CompilerWrapperIdentity
impl CompilerWrapperIdentity
Sourcepub fn unknown_version(
kind: CompilerWrapperKind,
raw_version_line: impl Into<String>,
) -> Self
pub fn unknown_version( kind: CompilerWrapperKind, raw_version_line: impl Into<String>, ) -> Self
Convenience constructor for an identity whose version could not be parsed.
Trait Implementations§
Source§impl Clone for CompilerWrapperIdentity
impl Clone for CompilerWrapperIdentity
Source§fn clone(&self) -> CompilerWrapperIdentity
fn clone(&self) -> CompilerWrapperIdentity
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 CompilerWrapperIdentity
impl Debug for CompilerWrapperIdentity
Source§impl<'de> Deserialize<'de> for CompilerWrapperIdentity
impl<'de> Deserialize<'de> for CompilerWrapperIdentity
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 CompilerWrapperIdentity
impl PartialEq for CompilerWrapperIdentity
Source§fn eq(&self, other: &CompilerWrapperIdentity) -> bool
fn eq(&self, other: &CompilerWrapperIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompilerWrapperIdentity
impl Serialize for CompilerWrapperIdentity
impl Eq for CompilerWrapperIdentity
impl StructuralPartialEq for CompilerWrapperIdentity
Auto Trait Implementations§
impl Freeze for CompilerWrapperIdentity
impl RefUnwindSafe for CompilerWrapperIdentity
impl Send for CompilerWrapperIdentity
impl Sync for CompilerWrapperIdentity
impl Unpin for CompilerWrapperIdentity
impl UnsafeUnpin for CompilerWrapperIdentity
impl UnwindSafe for CompilerWrapperIdentity
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.