#[repr(u8)]pub enum VersionPosition {
Major = 0,
Minor = 1,
Build = 2,
Revision = 3,
Prerelease = 4,
BuildMetadata = 5,
}Expand description
Identifies positions in a semantic version.
Variants§
Major = 0
The major numeric component.
Minor = 1
The minor numeric component.
Build = 2
The build numeric component.
Revision = 3
The revision numeric component.
Prerelease = 4
The prerelease portion.
BuildMetadata = 5
The build metadata portion.
Trait Implementations§
Source§impl Clone for VersionPosition
impl Clone for VersionPosition
impl Copy for VersionPosition
Source§impl Debug for VersionPosition
impl Debug for VersionPosition
impl Eq for VersionPosition
Source§impl Hash for VersionPosition
impl Hash for VersionPosition
Source§impl Ord for VersionPosition
impl Ord for VersionPosition
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VersionPosition
impl PartialEq for VersionPosition
Source§impl PartialOrd for VersionPosition
impl PartialOrd for VersionPosition
impl StructuralPartialEq for VersionPosition
Auto Trait Implementations§
impl Freeze for VersionPosition
impl RefUnwindSafe for VersionPosition
impl Send for VersionPosition
impl Sync for VersionPosition
impl Unpin for VersionPosition
impl UnsafeUnpin for VersionPosition
impl UnwindSafe for VersionPosition
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