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 duplicate 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§impl PartialOrd for CargoFeature
impl PartialOrd for CargoFeature
impl Eq for CargoFeature
impl StructuralPartialEq for CargoFeature
Auto Trait Implementations§
impl Freeze for CargoFeature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.