[src]

Struct semver::Version

pub struct Version {
    major: uint,
    minor: uint,
    patch: uint,
    pre: Vec<Identifier>,
    build: Vec<Identifier>,
}

Represents a version number conforming to the semantic versioning scheme.

Fields

major

The major version, to be incremented on incompatible changes.

minor

The minor version, to be incremented when functionality is added in a backwards-compatible manner.

patch

The patch version, to be incremented when backwards-compatible bug fixes are made.

pre

The pre-release version identifier, if one exists.

build

The build metadata, ignored when determining version precedence.

Trait Implementations

impl Show for Version

fn fmt(&self, f: &mut Formatter) -> Result

impl Eq for Version

fn eq(&self, other: &Version) -> bool

impl Ord for Version

fn lt(&self, other: &Version) -> bool

Derived Implementations

impl Clone for Version

fn clone(&self) -> Version