Enum cargo::core::dependency::Platform
[−]
[src]
pub enum Platform { Name(String), Cfg(CfgExpr), }
Variants
Name(String)
Cfg(CfgExpr)
Methods
impl Platform
[src]
Trait Implementations
impl Clone for Platform
[src]
fn clone(&self) -> Platform
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Platform
[src]
impl PartialEq for Platform
[src]
fn eq(&self, __arg_0: &Platform) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Platform) -> bool
This method tests for !=
.
impl Serialize for Platform
[src]
fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl FromStr for Platform
[src]
type Err = CargoError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> CargoResult<Platform>
Parses a string s
to return a value of this type. Read more