Enum target_spec::TargetFeatures
source · [−]Expand description
A set of target features to match.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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
impl Arbitrary for TargetFeatures
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 more
type Strategy = BoxedStrategy<Self>
type Strategy = BoxedStrategy<Self>
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 more
sourceimpl Debug for TargetFeatures
impl Debug for TargetFeatures
sourceimpl Hash for TargetFeatures
impl Hash for TargetFeatures
sourceimpl Ord for TargetFeatures
impl Ord for TargetFeatures
sourceimpl PartialEq<TargetFeatures> for TargetFeatures
impl PartialEq<TargetFeatures> for TargetFeatures
sourcefn eq(&self, other: &TargetFeatures) -> bool
fn eq(&self, other: &TargetFeatures) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TargetFeatures) -> bool
fn ne(&self, other: &TargetFeatures) -> bool
This method tests for !=
.
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more