Struct target_features::Feature
source · pub struct Feature(_);Expand description
A target feature.
Implementations§
source§impl Feature
impl Feature
sourcepub const fn new(
architecture: Architecture,
feature: &str
) -> Result<Self, UnknownFeature>
pub const fn new(
architecture: Architecture,
feature: &str
) -> Result<Self, UnknownFeature>
Look up a feature.
sourcepub const fn architecture(&self) -> Architecture
pub const fn architecture(&self) -> Architecture
Get the architecture this feature is for.
sourcepub const fn description(&self) -> &'static str
pub const fn description(&self) -> &'static str
Get a human-readable description of the feature.