pub struct Version { /* private fields */ }Implementations§
Source§impl Version
impl Version
pub fn new(major_version: i32, minor_version: i32) -> Self
pub fn with_patch( major_version: i32, minor_version: i32, patch_version: i32, ) -> Self
pub fn with_patch_and_suffix( major_version: i32, minor_version: i32, patch_version: i32, pre_release_suffix: bool, ) -> Self
pub fn parse(version_str: &str) -> Self
pub fn major_version(&self) -> i32
pub fn minor_version(&self) -> i32
pub fn patch_version(&self) -> i32
pub fn is_pre_release_suffix(&self) -> bool
Trait Implementations§
impl Copy for Version
impl Eq for Version
Source§impl Ord for Version
impl Ord for Version
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 PartialOrd for Version
impl PartialOrd 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 UnsafeUnpin 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