#[non_exhaustive]pub enum Edition {
Rust2015,
Rust2018,
Rust2021,
Rust2024,
}Expand description
All possible Rust editions. This is the only type in this module meant to be used as context, and not as a writable itself.
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.
Rust2015
This Rust edition is declared for usability purposes. However, not all Writable implementations are guaranteed to work with it.
Rust2018
Rust2021
Rust2024
Trait Implementations§
impl Copy for Edition
impl Eq for Edition
Source§impl Ord for Edition
impl Ord for Edition
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Edition
impl PartialOrd for Edition
impl StructuralPartialEq for Edition
Auto Trait Implementations§
impl Freeze for Edition
impl RefUnwindSafe for Edition
impl Send for Edition
impl Sync for Edition
impl Unpin for Edition
impl UnsafeUnpin for Edition
impl UnwindSafe for Edition
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