pub struct Version {
pub major: u32,
pub minor: u32,
pub revision: u32,
}
Fields§
§major: u32
§minor: u32
§revision: u32
Implementations§
Source§impl Version
impl Version
Sourcepub fn with_major(&self, major: u32) -> Self
pub fn with_major(&self, major: u32) -> Self
Copies the version, updating the major number
Sourcepub fn with_minor(&self, minor: u32) -> Self
pub fn with_minor(&self, minor: u32) -> Self
Copies the version, updating the minor number
Sourcepub fn with_revision(&self, revision: u32) -> Self
pub fn with_revision(&self, revision: u32) -> Self
Copies the version, updating the revision number
Trait Implementations§
Source§impl Ord for Version
impl Ord for Version
Source§impl PartialOrd for Version
impl PartialOrd 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