Struct maven_version::Maven3ArtifactVersion [] [src]

pub struct Maven3ArtifactVersion<'a> { /* fields omitted */ }

Methods

impl<'a> Maven3ArtifactVersion<'a>
[src]

Maven3 Version Artifact

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);

Trait Implementations

impl<'a> Debug for Maven3ArtifactVersion<'a>
[src]

Formats the value using the given formatter.

impl<'a> ArtifactVersion for Maven3ArtifactVersion<'a>
[src]

impl<'a> From<&'a str> for Maven3ArtifactVersion<'a>
[src]

Performs the conversion.

impl<'a> Eq for Maven3ArtifactVersion<'a>
[src]

impl<'a> PartialEq for Maven3ArtifactVersion<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Ord for Maven3ArtifactVersion<'a>
[src]

This method returns an Ordering between self and other. Read more

impl<'a> PartialOrd for Maven3ArtifactVersion<'a>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Display for Maven3ArtifactVersion<'a>
[src]

Formats the value using the given formatter. Read more