Enum cargo::core::dependency::Platform [] [src]

pub enum Platform {
    Name(String),
    Cfg(CfgExpr),
}

Variants

Name
Cfg

Methods

impl Platform

fn matches(&self, name: &str, cfg: Option<&[Cfg]>) -> bool

Trait Implementations

impl Encodable for Platform

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

impl FromStr for Platform

type Err = Box<CargoError>

fn from_str(s: &str) -> CargoResult<Platform>

impl Display for Platform

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for Platform

fn eq(&self, __arg_0: &Platform) -> bool

fn ne(&self, __arg_0: &Platform) -> bool

impl Debug for Platform

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Platform

fn clone(&self) -> Platform

1.0.0fn clone_from(&mut self, source: &Self)