Semver parsing and logic

Enum Identifier

Variants

Struct Version

pub struct Version {
    major: uint,
    minor: uint,
    patch: uint,
    pre: ~[Identifier],
    build: ~[Identifier],
}

Implementation of ::std::cmp::Eq for Identifier

Automatically derived.

Method eq

fn eq(&self, __arg_0: &Identifier) -> ::bool

Method ne

fn ne(&self, __arg_0: &Identifier) -> ::bool

Implementation of cmp::Ord for Identifier

Method lt

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

Method le

fn le(&self, other: &Identifier) -> bool

Method gt

fn gt(&self, other: &Identifier) -> bool

Method ge

fn ge(&self, other: &Identifier) -> bool

Implementation of ToStr for Identifier

Method to_str

fn to_str(&self) -> ~str

Implementation of ::std::cmp::Eq for Version

Automatically derived.

Method eq

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

Method ne

fn ne(&self, __arg_0: &Version) -> ::bool

Implementation of ToStr for Version

Method to_str

fn to_str(&self) -> ~str

Implementation of cmp::Ord for Version

Method lt

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

Method le

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

Method gt

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

Method ge

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

Function parse

fn parse(s: &str) -> Option<Version>