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§
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