Trait cargo_edit::VersionExt [−][src]
pub trait VersionExt {
fn increment_major(&mut self);
fn increment_minor(&mut self);
fn increment_patch(&mut self);
fn increment_alpha(&mut self) -> Result<()>;
fn increment_beta(&mut self) -> Result<()>;
fn increment_rc(&mut self) -> Result<()>;
fn metadata(&mut self, metadata: &str) -> Result<()>;
fn is_prerelease(&self) -> bool;
}Expand description
Additional version functionality
Required methods
fn increment_major(&mut self)
fn increment_major(&mut self)
Increments the major version number for this Version.
fn increment_minor(&mut self)
fn increment_minor(&mut self)
Increments the minor version number for this Version.
fn increment_patch(&mut self)
fn increment_patch(&mut self)
Increments the patch version number for this Version.
fn increment_alpha(&mut self) -> Result<()>
fn increment_alpha(&mut self) -> Result<()>
Increment the alpha pre-release number for this Version.
If this isn’t alpha, switch to it.
Errors if this would decrement the pre-release phase.
fn increment_beta(&mut self) -> Result<()>
fn increment_beta(&mut self) -> Result<()>
Increment the beta pre-release number for this Version.
If this isn’t beta, switch to it.
Errors if this would decrement the pre-release phase.
fn increment_rc(&mut self) -> Result<()>
fn increment_rc(&mut self) -> Result<()>
Increment the rc pre-release number for this Version.
If this isn’t rc, switch to it.
Errors if this would decrement the pre-release phase.
fn is_prerelease(&self) -> bool
fn is_prerelease(&self) -> bool
Checks to see if the current Version is in pre-release status