Struct upm_lib::Version [] [src]

pub struct Version { /* fields omitted */ }

A simple representation of a version string. For semantic versioning Steve Klabnik's semver crate is preferable. But non-semantic versioning is also permitted in this struct.

Methods

impl Version
[src]

[src]

Get the string representation of the version

[src]

Change the version along with checking if this new version appears to be semantic

[src]

Check if a representation appears to be semantic versioning

[src]

Explicitly set whether the version is semantic. If the version string doesn't pass is_semantic, then it won't set semantic to true and will return false.

[src]

Is this a semantic version?

Trait Implementations

impl Debug for Version
[src]

[src]

Formats the value using the given formatter.

impl Default for Version
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for Version
[src]

[src]

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

1.0.0
[src]

This method tests for !=.