Semver parsing and logic
Identifier
Version
of ::std::cmp::Eq for Identifier
- Automatically derived.of cmp::Ord for Identifier
of ToStr for Identifier
of ::std::cmp::Eq for Version
- Automatically derived.of ToStr for Version
of cmp::Ord for Version
parse
semver::bad_parse
Identifier
Numeric(uint)
AlphaNumeric(~str)
Version
pub struct Version {
major: uint,
minor: uint,
patch: uint,
pre: ~[Identifier],
build: ~[Identifier],
}
::std::cmp::Eq
for Identifier
Automatically derived.
eq
fn eq(&self, __arg_0: &Identifier) -> ::bool
ne
fn ne(&self, __arg_0: &Identifier) -> ::bool
cmp::Ord
for Identifier
lt
fn lt(&self, other: &Identifier) -> bool
le
fn le(&self, other: &Identifier) -> bool
gt
fn gt(&self, other: &Identifier) -> bool
ge
fn ge(&self, other: &Identifier) -> bool
ToStr
for Identifier
to_str
fn to_str(&self) -> ~str
::std::cmp::Eq
for Version
Automatically derived.
eq
fn eq(&self, __arg_0: &Version) -> ::bool
ne
fn ne(&self, __arg_0: &Version) -> ::bool
ToStr
for Version
to_str
fn to_str(&self) -> ~str
cmp::Ord
for Version
lt
fn lt(&self, other: &Version) -> bool
le
fn le(&self, other: &Version) -> bool
gt
fn gt(&self, other: &Version) -> bool
ge
fn ge(&self, other: &Version) -> bool
parse
fn parse(s: &str) -> Option<Version>