Struct maven_version::Maven3ArtifactVersion
[−]
[src]
pub struct Maven3ArtifactVersion<'a> { /* fields omitted */ }
Methods
impl<'a> Maven3ArtifactVersion<'a>
[src]
Maven3 Version Artifact
fn new(version: &'a str) -> Self
Creates a new instance of Maven3ArtifactVersion.
Example
use maven_version::Maven3ArtifactVersion; let v1 = Maven3ArtifactVersion::new("2.0.1"); let v2 = Maven3ArtifactVersion::new("2.0.1-xyz"); assert!(v1 < v2);
fn canonical(&self) -> &str
Trait Implementations
impl<'a> Debug for Maven3ArtifactVersion<'a>
[src]
impl<'a> ArtifactVersion for Maven3ArtifactVersion<'a>
[src]
impl<'a> From<&'a str> for Maven3ArtifactVersion<'a>
[src]
fn from(version: &'a str) -> Maven3ArtifactVersion<'a>
Performs the conversion.
impl<'a> Eq for Maven3ArtifactVersion<'a>
[src]
impl<'a> PartialEq for Maven3ArtifactVersion<'a>
[src]
fn eq(&self, other: &Maven3ArtifactVersion) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<'a> Ord for Maven3ArtifactVersion<'a>
[src]
fn cmp(&self, other: &Maven3ArtifactVersion) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<'a> PartialOrd for Maven3ArtifactVersion<'a>
[src]
fn partial_cmp(&self, other: &Maven3ArtifactVersion) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'a> Hash for Maven3ArtifactVersion<'a>
[src]
fn hash<H: Hasher>(&self, state: &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