Enum cargo_platform::Platform
source · Expand description
Platform definition.
Variants§
Name(String)
A named platform, like x86_64-apple-darwin
.
Cfg(CfgExpr)
A cfg expression, like cfg(windows)
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Platform
impl<'de> Deserialize<'de> for Platform
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Platform
impl Ord for Platform
source§impl PartialEq<Platform> for Platform
impl PartialEq<Platform> for Platform
source§impl PartialOrd<Platform> for Platform
impl PartialOrd<Platform> for Platform
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 more