Enum version_compare::version_part::VersionPart [] [src]

pub enum VersionPart<'a> {
    Number(i32),
    Text(&'a str),
}

Enum of version string parts.

Each version string is broken down into these version parts when being parsed to a Version.

Variants

Numeric part, most common in version strings. Holds the numerical value.

A text part. These parts usually hold text with an yet unknown definition. Holds the string slice.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

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

[src]

This method tests for !=.