pub enum SpecialVersion {
Alpha,
Alpha2,
Beta,
}Expand description
SpecialVersion represents a special version from the first releases.
Before Rust 1.0.0, there were two alpha and one beta release, namely
1.0.0-alpha1.0.0-alpha.21.0.0-beta
This enum represents those releases.
Variants§
Trait Implementations§
Source§impl Clone for SpecialVersion
impl Clone for SpecialVersion
Source§fn clone(&self) -> SpecialVersion
fn clone(&self) -> SpecialVersion
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 moreimpl Copy for SpecialVersion
Source§impl Debug for SpecialVersion
impl Debug for SpecialVersion
Source§impl Display for SpecialVersion
impl Display for SpecialVersion
impl Eq for SpecialVersion
Source§impl Ord for SpecialVersion
impl Ord for SpecialVersion
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 PartialEq for SpecialVersion
impl PartialEq for SpecialVersion
Source§fn eq(&self, other: &SpecialVersion) -> bool
fn eq(&self, other: &SpecialVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SpecialVersion
impl PartialOrd for SpecialVersion
impl StructuralPartialEq for SpecialVersion
Auto Trait Implementations§
impl Freeze for SpecialVersion
impl RefUnwindSafe for SpecialVersion
impl Send for SpecialVersion
impl Sync for SpecialVersion
impl Unpin for SpecialVersion
impl UnsafeUnpin for SpecialVersion
impl UnwindSafe for SpecialVersion
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