pub enum ToolKind {
CCompiler,
CxxCompiler,
Archiver,
}Expand description
Which kind of tool a selection refers to.
Variants§
CCompiler
C compiler (driver, e.g. cc, clang, gcc).
CxxCompiler
C++ compiler (driver, e.g. c++, clang++, g++). Also
drives linking in the current backend.
Archiver
Static-library archiver (e.g. ar, llvm-ar).
Implementations§
Source§impl ToolKind
impl ToolKind
Sourcepub fn as_key(self) -> &'static str
pub fn as_key(self) -> &'static str
Stable, lower-case identifier used in CLI flags, manifest keys, JSON serialization, and error messages.
Sourcepub fn human_label(self) -> &'static str
pub fn human_label(self) -> &'static str
Human-readable label used in error messages so users can map the failure back to the tool they were thinking about.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolKind
impl<'de> Deserialize<'de> for ToolKind
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 Ord for ToolKind
impl Ord for ToolKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ToolKind
impl PartialOrd for ToolKind
impl Copy for ToolKind
impl Eq for ToolKind
impl StructuralPartialEq for ToolKind
Auto Trait Implementations§
impl Freeze for ToolKind
impl RefUnwindSafe for ToolKind
impl Send for ToolKind
impl Sync for ToolKind
impl Unpin for ToolKind
impl UnsafeUnpin for ToolKind
impl UnwindSafe for ToolKind
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.