Enum cargo_metadata::Edition
source · #[non_exhaustive]
pub enum Edition {
E2015,
E2018,
E2021,
}
Expand description
The Rust edition
As of writing this comment rust editions 2024, 2027 and 2030 are not actually a thing yet but are parsed nonetheless for future proofing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Edition
impl<'de> Deserialize<'de> for Edition
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 Edition
impl Ord for Edition
source§impl PartialEq<Edition> for Edition
impl PartialEq<Edition> for Edition
source§impl PartialOrd<Edition> for Edition
impl PartialOrd<Edition> for Edition
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