pub enum CargoEdition {
E2015,
E2018,
E2021,
E2024,
Other(String),
}Expand description
Known Cargo editions plus a fallback for unknown future values.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CargoEdition
impl Clone for CargoEdition
Source§fn clone(&self) -> CargoEdition
fn clone(&self) -> CargoEdition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CargoEdition
impl Debug for CargoEdition
Source§impl<'de> Deserialize<'de> for CargoEdition
impl<'de> Deserialize<'de> for CargoEdition
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 Display for CargoEdition
impl Display for CargoEdition
Source§impl PartialEq for CargoEdition
impl PartialEq for CargoEdition
Source§fn eq(&self, other: &CargoEdition) -> bool
fn eq(&self, other: &CargoEdition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CargoEdition
impl Serialize for CargoEdition
impl Eq for CargoEdition
impl StructuralPartialEq for CargoEdition
Auto Trait Implementations§
impl Freeze for CargoEdition
impl RefUnwindSafe for CargoEdition
impl Send for CargoEdition
impl Sync for CargoEdition
impl Unpin for CargoEdition
impl UnsafeUnpin for CargoEdition
impl UnwindSafe for CargoEdition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.