[][src]Enum cargo_platform::CfgExpr

pub enum CfgExpr {
    Not(Box<CfgExpr>),
    All(Vec<CfgExpr>),
    Any(Vec<CfgExpr>),
    Value(Cfg),
}

A cfg expression.

Variants

Not(Box<CfgExpr>)
All(Vec<CfgExpr>)
Any(Vec<CfgExpr>)
Value(Cfg)

Methods

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 Eq for CfgExpr[src]

impl Clone for CfgExpr[src]

impl PartialOrd<CfgExpr> for CfgExpr[src]

impl PartialEq<CfgExpr> for CfgExpr[src]

impl Ord for CfgExpr[src]

impl Hash for CfgExpr[src]

impl Debug for CfgExpr[src]

impl Display for CfgExpr[src]

impl FromStr for CfgExpr[src]

type Err = ParseError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for CfgExpr

impl Unpin for CfgExpr

impl Sync for CfgExpr

impl UnwindSafe for CfgExpr

impl RefUnwindSafe for CfgExpr

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]