#[repr(u8)]pub enum Edition {
Edition2015 = 0,
Edition2018 = 1,
Edition2021 = 2,
Edition2024 = 3,
}
Variants§
Implementations§
Source§impl Edition
impl Edition
pub const DEFAULT: Edition = Edition::Edition2015
pub const LATEST: Edition = Edition::Edition2024
pub const CURRENT: Edition = Edition::Edition2024
Sourcepub const CURRENT_FIXME: Edition = Edition::Edition2024
pub const CURRENT_FIXME: Edition = Edition::Edition2024
The current latest stable edition, note this is usually not the right choice in code.
pub fn from_u32(u32: u32) -> Edition
pub fn at_least_2024(self) -> bool
pub fn at_least_2021(self) -> bool
pub fn at_least_2018(self) -> bool
pub fn number(&self) -> usize
pub fn iter() -> impl Iterator<Item = Edition>
Trait Implementations§
Source§impl Ord for Edition
impl Ord for Edition
Source§impl PartialOrd for Edition
impl PartialOrd for Edition
impl Copy for Edition
impl Eq 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 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