[][src]Enum target_spec::summaries::TargetFeaturesSummary

#[non_exhaustive]pub enum TargetFeaturesSummary {
    Unknown,
    Features(BTreeSet<String>),
    All,
}

An owned, serializable version of TargetFeatures.

This type can be serialized and deserialized using serde.

Requires the summaries feature to be enabled.

Variants (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<String>)

Only match the specified features.

All

Match all features.

Implementations

impl TargetFeaturesSummary[src]

pub fn new(target_features: &TargetFeatures<'_>) -> Self[src]

Creates a new TargetFeaturesSummary from a TargetFeatures.

pub fn to_target_features(&self) -> TargetFeatures<'_>[src]

Converts self to a TargetFeatures instance.

Trait Implementations

impl Clone for TargetFeaturesSummary[src]

impl Debug for TargetFeaturesSummary[src]

impl<'de> Deserialize<'de> for TargetFeaturesSummary[src]

impl Eq for TargetFeaturesSummary[src]

impl PartialEq<TargetFeaturesSummary> for TargetFeaturesSummary[src]

impl Serialize for TargetFeaturesSummary[src]

impl StructuralEq for TargetFeaturesSummary[src]

impl StructuralPartialEq for TargetFeaturesSummary[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,