Struct couchdb::Version
[−]
[src]
pub struct Version(_);
Version
is a string specifying a version.
Summary
Version
thinly wraps a string but may be parsed into its major, minor, and patch numbers.Version
implementsDeserialize
.
Methods
impl Version
[src]
fn triple(&self) -> Option<(u64, u64, u64)>
Tries to obtain the major, minor, and patch numbers from the version string.
Trait Implementations
impl Clone for Version
[src]
fn clone(&self) -> Version
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Version
[src]
impl Default for Version
[src]
impl Eq for Version
[src]
impl Hash for Version
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Version
[src]
fn eq(&self, __arg_0: &Version) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Version) -> bool
This method tests for !=
.
impl Display for Version
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more