Enum cargo_platform::CfgExpr [−][src]
A cfg expression.
Variants
Value(Cfg)
Implementations
impl CfgExpr
[src][−]
pub fn matches_key(key: &str, target_cfg: &[Cfg]) -> bool
[src][−]
Utility function to check if the key, “cfg(..)” matches the target_cfg
pub fn matches(&self, cfg: &[Cfg]) -> bool
[src]
Trait Implementations
impl Clone for CfgExpr
[src][+]
impl Debug for CfgExpr
[src][+]
impl Display for CfgExpr
[src][+]
impl Eq for CfgExpr
[src]
impl FromStr for CfgExpr
[src][+]
impl Hash for CfgExpr
[src][+]
impl Ord for CfgExpr
[src][+]
impl PartialEq<CfgExpr> for CfgExpr
[src][+]
impl PartialOrd<CfgExpr> for CfgExpr
[src][+]
impl StructuralEq for CfgExpr
[src]
impl StructuralPartialEq for CfgExpr
[src]
Auto Trait Implementations
impl RefUnwindSafe for CfgExpr
impl Send for CfgExpr
impl Sync for CfgExpr
impl Unpin for CfgExpr
impl UnwindSafe for CfgExpr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,