#[non_exhaustive]pub enum TargetFeatures {
    Unknown,
    Features(BTreeSet<Cow<'static, str>>),
    All,
}Expand description
A set of target features to match.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
The target features are unknown.
Features(BTreeSet<Cow<'static, str>>)
Only match the specified features.
All
Match all features.
Implementations§
Source§impl TargetFeatures
 
impl TargetFeatures
Trait Implementations§
Source§impl Arbitrary for TargetFeatures
Available on crate feature proptest1 only.The Arbitrary implementation for TargetFeatures uses a predefined list of features.
 
impl Arbitrary for TargetFeatures
Available on crate feature 
proptest1 only.The Arbitrary implementation for TargetFeatures uses a predefined list of features.
Source§type Parameters = ()
 
type Parameters = ()
The type of parameters that 
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<TargetFeatures>
 
type Strategy = BoxedStrategy<TargetFeatures>
The type of 
Strategy used to generate values of type Self.Source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
 
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
Source§impl Clone for TargetFeatures
 
impl Clone for TargetFeatures
Source§fn clone(&self) -> TargetFeatures
 
fn clone(&self) -> TargetFeatures
Returns a duplicate of the value. Read more
1.0.0 · 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 TargetFeatures
 
impl Debug for TargetFeatures
Source§impl Hash for TargetFeatures
 
impl Hash for TargetFeatures
Source§impl Ord for TargetFeatures
 
impl Ord for TargetFeatures
Source§fn cmp(&self, other: &TargetFeatures) -> Ordering
 
fn cmp(&self, other: &TargetFeatures) -> Ordering
1.21.0 · 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 TargetFeatures
 
impl PartialEq for TargetFeatures
Source§impl PartialOrd for TargetFeatures
 
impl PartialOrd for TargetFeatures
impl Eq for TargetFeatures
impl StructuralPartialEq for TargetFeatures
Auto Trait Implementations§
impl Freeze for TargetFeatures
impl RefUnwindSafe for TargetFeatures
impl Send for TargetFeatures
impl Sync for TargetFeatures
impl Unpin for TargetFeatures
impl UnwindSafe for TargetFeatures
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