pub struct Version { /* private fields */ }Implementations§
Source§impl Version
impl Version
pub fn bump_patch(&self) -> Version
pub fn bump_minor(&self) -> Version
pub fn bump_major(&self) -> Version
pub fn update_pre_release(&self, pre: impl Into<String>) -> Result<Version>
pub fn update_build(&self, build: impl Into<String>) -> Result<Version>
Trait Implementations§
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