pub trait VersionExt {
    fn increment_major(&mut self);
fn increment_minor(&mut self);
fn increment_patch(&mut self);
fn increment_alpha(&mut self) -> CargoResult<()>;
fn increment_beta(&mut self) -> CargoResult<()>;
fn increment_rc(&mut self) -> CargoResult<()>;
fn metadata(&mut self, metadata: &str) -> CargoResult<()>;
fn is_prerelease(&self) -> bool; }
Expand description

Additional version functionality

Required methods

Increments the major version number for this Version.

Increments the minor version number for this Version.

Increments the patch version number for this Version.

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.

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.

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.

Append informational-only metadata.

Checks to see if the current Version is in pre-release status

Implementations on Foreign Types

Implementors