Struct spack::metadata_spec::spec::FeatureMap
source · pub struct FeatureMap {
pub needed: IndexSet<CargoFeature>,
pub conflicting: IndexSet<CargoFeature>,
}Fields§
§needed: IndexSet<CargoFeature>§conflicting: IndexSet<CargoFeature>Implementations§
source§impl FeatureMap
impl FeatureMap
pub fn evaluate(&self, features: &FeatureSet) -> bool
Trait Implementations§
source§impl Clone for FeatureMap
impl Clone for FeatureMap
source§fn clone(&self) -> FeatureMap
fn clone(&self) -> FeatureMap
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FeatureMap
impl Debug for FeatureMap
source§impl Default for FeatureMap
impl Default for FeatureMap
source§fn default() -> FeatureMap
fn default() -> FeatureMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FeatureMap
impl Send for FeatureMap
impl Sync for FeatureMap
impl Unpin for FeatureMap
impl UnwindSafe for FeatureMap
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