Enum target_spec::TargetFeatures
source · [−]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
sourceimpl TargetFeatures
impl TargetFeatures
Trait Implementations
sourceimpl Arbitrary for TargetFeatures
Available on crate feature proptest1 only.
impl Arbitrary for TargetFeatures
Available on crate feature
proptest1 only.The Arbitrary implementation for TargetFeatures uses a predefined list of features.
type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read moretype Strategy = BoxedStrategy<TargetFeatures>
type Strategy = BoxedStrategy<TargetFeatures>
sourcefn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
sourceimpl Clone for TargetFeatures
impl Clone for TargetFeatures
sourcefn clone(&self) -> TargetFeatures
fn clone(&self) -> TargetFeatures
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TargetFeatures
impl Debug for TargetFeatures
sourceimpl Hash for TargetFeatures
impl Hash for TargetFeatures
sourceimpl Ord for TargetFeatures
impl Ord for TargetFeatures
sourcefn cmp(&self, other: &TargetFeatures) -> Ordering
fn cmp(&self, other: &TargetFeatures) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<TargetFeatures> for TargetFeatures
impl PartialEq<TargetFeatures> for TargetFeatures
sourcefn eq(&self, other: &TargetFeatures) -> bool
fn eq(&self, other: &TargetFeatures) -> bool
sourceimpl PartialOrd<TargetFeatures> for TargetFeatures
impl PartialOrd<TargetFeatures> for TargetFeatures
sourcefn partial_cmp(&self, other: &TargetFeatures) -> Option<Ordering>
fn partial_cmp(&self, other: &TargetFeatures) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for TargetFeatures
impl StructuralEq for TargetFeatures
impl StructuralPartialEq for TargetFeatures
Auto Trait Implementations
impl RefUnwindSafe for TargetFeatures
impl Send for TargetFeatures
impl Sync for TargetFeatures
impl Unpin for TargetFeatures
impl UnwindSafe for TargetFeatures
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more