/// Creates a new `TargetFeaturesSummary` from a `TargetFeatures`.
Creates a new `TargetFeaturesSummary` from a `TargetFeatures`.
Creates a new ` TargetFeaturesSummary ` from a ` TargetFeatures ` .
pub fn new(target_features: &TargetFeatures) -> Self {
        match target_features {
            TargetFeatures::Unknown => TargetFeaturesSummary::Unknown,
            TargetFeatures::Features(features) => TargetFeaturesSummary::Features(
                features.iter().map(|feature| feature.to_string()).collect(),
            ),
            TargetFeatures::All => TargetFeaturesSummary::All,
        }
    }
pub fn new ( target_features : & TargetFeatures ) -> Self { match target_features { TargetFeatures :: Unknown => TargetFeaturesSummary :: Unknown , TargetFeatures :: Features ( features ) => TargetFeaturesSummary :: Features ( features . iter ( ) . map ( | feature | feature . to_string ( ) ) . collect ( ) , ) , TargetFeatures :: All => TargetFeaturesSummary :: All , } }
Creates a new `TargetFeaturesSummary` from a `TargetFeatures`.
Creates a new ` TargetFeaturesSummary ` from a ` TargetFeatures ` .
target_features
&TargetFeatures