Skip to main content

target_features

Macro target_features 

Source
macro_rules! target_features {
    ($($feature:tt),* $(,)?) => { ... };
}
Expand description

Constructs a TargetFeatures value from target feature names.

Each name identifies a target feature. Multiple names are combined using TargetFeatures::with.

const REQUIRED: target_features::TargetFeatures =
    target_features::target_features!("avx", "fma", "bmi2");