pub struct Version(pub VersionType, pub u16, pub u16, pub u16);
Expand description
A version struct tuple used to represent common versions from alpha.
Pre-release and release candidate are not yet representable with this.
The numbers are in the order: major version (always 1 for now), minor version, patch version.
Tuple Fields§
§0: VersionType
§1: u16
§2: u16
§3: u16
Implementations§
Source§impl Version
impl Version
pub const RELEASE_1_3_2: Version
pub const RELEASE_1_3_1: Version
pub const RELEASE_1_3: Version
pub const RELEASE_1_2_5: Version
pub const RELEASE_1_2_4: Version
pub const RELEASE_1_2_3: Version
pub const RELEASE_1_2_2: Version
pub const RELEASE_1_2_1: Version
pub const RELEASE_1_2: Version
pub fn version_type(&self) -> VersionType
pub fn major(&self) -> u16
pub fn minor(&self) -> u16
pub fn patch(&self) -> u16
Trait Implementations§
Source§impl Ord for Version
impl Ord for Version
Source§impl PartialOrd for Version
impl PartialOrd for Version
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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