pub enum CfgAtom {
Flag(SmolStr),
KeyValue {
key: SmolStr,
value: SmolStr,
},
}
Expand description
A simple configuration value passed in from the outside.
Variants§
Flag(SmolStr)
eg. #[cfg(test)]
KeyValue
eg. #[cfg(target_os = "linux")]
Note that a key can have multiple values that are all considered “active” at the same time.
For example, #[cfg(target_feature = "sse")]
and #[cfg(target_feature = "sse2")]
.
Implementations§
Trait Implementations§
source§impl Ord for CfgAtom
impl Ord for CfgAtom
source§impl PartialEq<CfgAtom> for CfgAtom
impl PartialEq<CfgAtom> for CfgAtom
source§impl PartialOrd<CfgAtom> for CfgAtom
impl PartialOrd<CfgAtom> for CfgAtom
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 CfgAtom
impl StructuralEq for CfgAtom
impl StructuralPartialEq for CfgAtom
Auto Trait Implementations§
impl RefUnwindSafe for CfgAtom
impl Send for CfgAtom
impl Sync for CfgAtom
impl Unpin for CfgAtom
impl UnwindSafe for CfgAtom
Blanket Implementations§
§impl<T> Cast for T
impl<T> Cast for T
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.