Enum Edition
#[repr(u8)]pub enum Edition {
Edition2015 = 0,
Edition2018 = 1,
Edition2021 = 2,
Edition2024 = 3,
}
Variants§
Implementations§
§impl Edition
impl Edition
pub const DEFAULT: Edition = Edition::Edition2015
pub const LATEST: Edition = Edition::Edition2024
pub const CURRENT: Edition = Edition::Edition2021
pub const CURRENT_FIXME: Edition = Edition::Edition2021
pub const CURRENT_FIXME: Edition = Edition::Edition2021
The current latest stable edition, note this is usually not the right choice in code.
pub fn at_least_2024(self) -> bool
pub fn at_least_2021(self) -> bool
pub fn at_least_2018(self) -> bool
pub fn iter() -> impl Iterator<Item = Edition>
Trait Implementations§
§impl Ord for Edition
impl Ord for Edition
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)