pub enum CompilerWrapperRequest {
Disabled,
Use {
wrapper: ToolSpec,
},
}Expand description
What the user (or a manifest layer) asked for, structurally.
Disabled is explicit opt-out: a higher-precedence layer can
no longer turn a wrapper back on. Use(_) selects a specific
wrapper kind. Layers that did not express any preference are
represented as Option::None at the call site, not as a variant
here.
Variants§
Disabled
“No wrapper at all”. Equivalent to the manifest value
compiler-wrapper = "none" and the CLI flag
--no-compiler-wrapper / --compiler-wrapper none.
Use
Use an executable name searched on PATH, or an explicit path.
Implementations§
Source§impl CompilerWrapperRequest
impl CompilerWrapperRequest
Sourcepub fn parse(raw: &str) -> Result<Self, CompilerWrapperParseError>
pub fn parse(raw: &str) -> Result<Self, CompilerWrapperParseError>
Parse a manifest / CLI / env value. Accepts:
"none"(case-insensitive) →Self::Disabled.- Any other non-empty value selects that executable name or path.
§Errors
Returns CompilerWrapperParseError::Empty when raw is empty after
trimming.
Sourcepub fn as_key(&self) -> String
pub fn as_key(&self) -> String
Stable display string. Round-trips with Self::parse.
Trait Implementations§
Source§impl Clone for CompilerWrapperRequest
impl Clone for CompilerWrapperRequest
Source§fn clone(&self) -> CompilerWrapperRequest
fn clone(&self) -> CompilerWrapperRequest
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 CompilerWrapperRequest
impl Debug for CompilerWrapperRequest
Source§impl<'de> Deserialize<'de> for CompilerWrapperRequest
impl<'de> Deserialize<'de> for CompilerWrapperRequest
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
impl Eq for CompilerWrapperRequest
Source§impl PartialEq for CompilerWrapperRequest
impl PartialEq for CompilerWrapperRequest
Source§fn eq(&self, other: &CompilerWrapperRequest) -> bool
fn eq(&self, other: &CompilerWrapperRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompilerWrapperRequest
impl Serialize for CompilerWrapperRequest
impl StructuralPartialEq for CompilerWrapperRequest
Auto Trait Implementations§
impl Freeze for CompilerWrapperRequest
impl RefUnwindSafe for CompilerWrapperRequest
impl Send for CompilerWrapperRequest
impl Sync for CompilerWrapperRequest
impl Unpin for CompilerWrapperRequest
impl UnsafeUnpin for CompilerWrapperRequest
impl UnwindSafe for CompilerWrapperRequest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.