Enum guppy::platform::TargetFeatures [−][src]
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
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
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.