pub enum CompilerSlot {
Cc,
Cxx,
}Expand description
Compiler slot a compiler condition tests: the detected C
compiler (cc / cc_version keys) or the detected C++
compiler (cxx / cxx_version). Deliberately not
crate::toolchain::ToolKind, which includes the archiver -
conditions support compiler slots only.
Variants§
Implementations§
Source§impl CompilerSlot
impl CompilerSlot
Sourcepub const fn family_key(self) -> &'static str
pub const fn family_key(self) -> &'static str
The family-condition cfg key (cc / cxx).
Sourcepub const fn version_key(self) -> &'static str
pub const fn version_key(self) -> &'static str
The version-condition cfg key (cc_version / cxx_version).
Trait Implementations§
Source§impl Clone for CompilerSlot
impl Clone for CompilerSlot
Source§fn clone(&self) -> CompilerSlot
fn clone(&self) -> CompilerSlot
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 moreimpl Copy for CompilerSlot
Source§impl Debug for CompilerSlot
impl Debug for CompilerSlot
impl Eq for CompilerSlot
Source§impl Hash for CompilerSlot
impl Hash for CompilerSlot
Source§impl Ord for CompilerSlot
impl Ord for CompilerSlot
Source§fn cmp(&self, other: &CompilerSlot) -> Ordering
fn cmp(&self, other: &CompilerSlot) -> Ordering
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 PartialEq for CompilerSlot
impl PartialEq for CompilerSlot
Source§fn eq(&self, other: &CompilerSlot) -> bool
fn eq(&self, other: &CompilerSlot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CompilerSlot
impl PartialOrd for CompilerSlot
impl StructuralPartialEq for CompilerSlot
Auto Trait Implementations§
impl Freeze for CompilerSlot
impl RefUnwindSafe for CompilerSlot
impl Send for CompilerSlot
impl Sync for CompilerSlot
impl Unpin for CompilerSlot
impl UnsafeUnpin for CompilerSlot
impl UnwindSafe for CompilerSlot
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.