Struct spack::metadata_spec::spec::CargoFeature
source · pub struct CargoFeature(pub String);Tuple Fields§
§0: StringImplementations§
source§impl CargoFeature
impl CargoFeature
sourcepub fn to_env_var_name(&self) -> String
pub fn to_env_var_name(&self) -> String
This environment variable will be set in the current package’s build script if the feature is activated.
Trait Implementations§
source§impl Clone for CargoFeature
impl Clone for CargoFeature
source§fn clone(&self) -> CargoFeature
fn clone(&self) -> CargoFeature
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 CargoFeature
impl Debug for CargoFeature
source§impl Hash for CargoFeature
impl Hash for CargoFeature
source§impl Ord for CargoFeature
impl Ord for CargoFeature
source§fn cmp(&self, other: &CargoFeature) -> Ordering
fn cmp(&self, other: &CargoFeature) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CargoFeature
impl PartialEq for CargoFeature
source§fn eq(&self, other: &CargoFeature) -> bool
fn eq(&self, other: &CargoFeature) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for CargoFeature
impl PartialOrd for CargoFeature
source§fn partial_cmp(&self, other: &CargoFeature) -> Option<Ordering>
fn partial_cmp(&self, other: &CargoFeature) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for CargoFeature
impl StructuralEq for CargoFeature
impl StructuralPartialEq for CargoFeature
Auto Trait Implementations§
impl RefUnwindSafe for CargoFeature
impl Send for CargoFeature
impl Sync for CargoFeature
impl Unpin for CargoFeature
impl UnwindSafe for CargoFeature
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.