Struct target_features::Feature
source · pub struct Feature(/* private fields */);
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.
Trait Implementations§
source§impl PartialEq for Feature
impl PartialEq for Feature
impl Copy for Feature
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more