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

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

Number(i32)

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

Text(&'a str)

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

Trait Implementations

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

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

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

Auto Trait Implementations

impl<'a> Send for VersionPart<'a>

impl<'a> Sync for VersionPart<'a>

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.