pub struct ResolvedCompilerWrapper {
pub kind: CompilerWrapperKind,
pub path: PathBuf,
pub spec: String,
pub source: CompilerWrapperSource,
pub identity: Option<CompilerWrapperIdentity>,
}Expand description
Fully resolved compiler-cache wrapper, ready to prefix the C++ compile command.
path is the absolute filesystem path the resolver settled on.
spec records the original spelling (the wrapper’s stable
as_key()) so metadata can show the requested name without
leaking machine-specific paths.
Fields§
§kind: CompilerWrapperKind§path: PathBuf§spec: StringUser-visible spelling for metadata. Today this is always
the bare command name corresponding to kind.
source: CompilerWrapperSource§identity: Option<CompilerWrapperIdentity>Detected identity (Some when version probing succeeded).
Always emitted by cabin metadata even when None, so
callers do not have to special-case the absence.
Implementations§
Source§impl ResolvedCompilerWrapper
impl ResolvedCompilerWrapper
Sourcepub fn as_json(&self) -> Value
pub fn as_json(&self) -> Value
Compact JSON view used by cabin metadata. Mirrors the
shape of crate::ResolvedTool::as_json so consumers see a
consistent pattern.
Trait Implementations§
Source§impl Clone for ResolvedCompilerWrapper
impl Clone for ResolvedCompilerWrapper
Source§fn clone(&self) -> ResolvedCompilerWrapper
fn clone(&self) -> ResolvedCompilerWrapper
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 ResolvedCompilerWrapper
impl Debug for ResolvedCompilerWrapper
Source§impl<'de> Deserialize<'de> for ResolvedCompilerWrapper
impl<'de> Deserialize<'de> for ResolvedCompilerWrapper
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 ResolvedCompilerWrapper
impl PartialEq for ResolvedCompilerWrapper
Source§fn eq(&self, other: &ResolvedCompilerWrapper) -> bool
fn eq(&self, other: &ResolvedCompilerWrapper) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResolvedCompilerWrapper
impl Serialize for ResolvedCompilerWrapper
impl Eq for ResolvedCompilerWrapper
impl StructuralPartialEq for ResolvedCompilerWrapper
Auto Trait Implementations§
impl Freeze for ResolvedCompilerWrapper
impl RefUnwindSafe for ResolvedCompilerWrapper
impl Send for ResolvedCompilerWrapper
impl Sync for ResolvedCompilerWrapper
impl Unpin for ResolvedCompilerWrapper
impl UnsafeUnpin for ResolvedCompilerWrapper
impl UnwindSafe for ResolvedCompilerWrapper
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.