pub enum CompilerWrapperKind {
Ccache,
Sccache,
}Expand description
Which compiler-cache wrapper Cabin should prefix the C++ compile
driver with. The “no wrapper” case is represented as the absence
of a ResolvedCompilerWrapper (i.e. an Option::None at the
call site), so this enum stays small and total over the wrappers
Cabin actually understands.
Variants§
Implementations§
Source§impl CompilerWrapperKind
impl CompilerWrapperKind
Sourcepub const fn as_key(self) -> &'static str
pub const fn as_key(self) -> &'static str
Stable lower-case identifier used in CLI flags, manifest values, environment variables, JSON output, and error messages.
Sourcepub const fn default_command(self) -> &'static str
pub const fn default_command(self) -> &'static str
Bare command name searched on PATH when no explicit path
is given. Today this matches Self::as_key for both
supported wrappers; kept as a separate accessor so future
platform-specific binaries (sccache-dist, …) can diverge
from the manifest key without breaking existing manifests.
Sourcepub const fn all() -> &'static [CompilerWrapperKind]
pub const fn all() -> &'static [CompilerWrapperKind]
Every supported wrapper, in stable declaration order. Used in error messages so users see the full list of accepted values.
Trait Implementations§
Source§impl Clone for CompilerWrapperKind
impl Clone for CompilerWrapperKind
Source§fn clone(&self) -> CompilerWrapperKind
fn clone(&self) -> CompilerWrapperKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompilerWrapperKind
impl Debug for CompilerWrapperKind
Source§impl<'de> Deserialize<'de> for CompilerWrapperKind
impl<'de> Deserialize<'de> for CompilerWrapperKind
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>,
Source§impl Display for CompilerWrapperKind
impl Display for CompilerWrapperKind
Source§impl Hash for CompilerWrapperKind
impl Hash for CompilerWrapperKind
Source§impl PartialEq for CompilerWrapperKind
impl PartialEq for CompilerWrapperKind
Source§fn eq(&self, other: &CompilerWrapperKind) -> bool
fn eq(&self, other: &CompilerWrapperKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for CompilerWrapperKind
impl Serialize for CompilerWrapperKind
impl Copy for CompilerWrapperKind
impl Eq for CompilerWrapperKind
impl StructuralPartialEq for CompilerWrapperKind
Auto Trait Implementations§
impl Freeze for CompilerWrapperKind
impl RefUnwindSafe for CompilerWrapperKind
impl Send for CompilerWrapperKind
impl Sync for CompilerWrapperKind
impl Unpin for CompilerWrapperKind
impl UnsafeUnpin for CompilerWrapperKind
impl UnwindSafe for CompilerWrapperKind
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
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
key and return true if they are equal.