pub enum ConditionKey {
Os,
Arch,
Family,
Env,
Abi,
Target,
}Expand description
Recognized target-condition keys. Anything else is rejected at parse time.
Variants§
Os
Operating system name (linux, macos, windows, …).
Arch
CPU architecture (x86_64, aarch64, …).
Family
OS family (unix, windows, …).
Env
Toolchain environment (gnu, musl, msvc, …).
Abi
Application binary interface flavor (eabi, …).
Target
Full normalized target triple, when available.
Implementations§
Source§impl ConditionKey
impl ConditionKey
Trait Implementations§
Source§impl Clone for ConditionKey
impl Clone for ConditionKey
Source§fn clone(&self) -> ConditionKey
fn clone(&self) -> ConditionKey
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 ConditionKey
impl Debug for ConditionKey
Source§impl FromStr for ConditionKey
impl FromStr for ConditionKey
Source§impl Hash for ConditionKey
impl Hash for ConditionKey
Source§impl Ord for ConditionKey
impl Ord for ConditionKey
Source§fn cmp(&self, other: &ConditionKey) -> Ordering
fn cmp(&self, other: &ConditionKey) -> 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 ConditionKey
impl PartialEq for ConditionKey
Source§fn eq(&self, other: &ConditionKey) -> bool
fn eq(&self, other: &ConditionKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConditionKey
impl PartialOrd for ConditionKey
impl Copy for ConditionKey
impl Eq for ConditionKey
impl StructuralPartialEq for ConditionKey
Auto Trait Implementations§
impl Freeze for ConditionKey
impl RefUnwindSafe for ConditionKey
impl Send for ConditionKey
impl Sync for ConditionKey
impl Unpin for ConditionKey
impl UnsafeUnpin for ConditionKey
impl UnwindSafe for ConditionKey
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.