Enum guppy::TargetFeatures [−][src]
Expand description
A set of target features to match.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The target features are unknown.
Only match the specified features.
Match all features.
Implementations
pub fn features(
features: impl IntoIterator<Item = impl Into<Cow<'static, str>>>
) -> TargetFeatures
pub fn features(
features: impl IntoIterator<Item = impl Into<Cow<'static, str>>>
) -> TargetFeatures
Creates a new TargetFeatures
which matches some features.
Creates a new TargetFeatures
which doesn’t match any features.
Trait Implementations
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<TargetFeatures>
type Strategy = BoxedStrategy<TargetFeatures>
pub fn arbitrary_with(
_args: <TargetFeatures as Arbitrary>::Parameters
) -> <TargetFeatures as Arbitrary>::Strategy
pub fn arbitrary_with(
_args: <TargetFeatures as Arbitrary>::Parameters
) -> <TargetFeatures as Arbitrary>::Strategy
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more