Enum pep440::PreRelease[][src]

pub enum PreRelease {
    RC(u32),
    A(u32),
    B(u32),
}

The pre-release component of a version, such as rcN, bN, or aN.

We don’t implement Ord on PreRelease because the context (Versions) under consideration matter. In other words, 1.2.3b1 < 1.2.3rc1, but 1.2.4b1 > 1.2.3rc1. If we allowed for comparing PreReleases alone, in the first scenario, we would have B(1) < RC(1) and in the second scenario we would have B(1) > RC(1). So we only implement comparison of PreRelease as part of the definition of comparison of Version as a whole.

Variants

RC(u32)

Release Candidate

A(u32)

Alpha

B(u32)

Beta

Trait Implementations

impl Clone for PreRelease[src]

impl Debug for PreRelease[src]

impl Display for PreRelease[src]

impl Eq for PreRelease[src]

impl PartialEq<PreRelease> for PreRelease[src]

impl StructuralEq for PreRelease[src]

impl StructuralPartialEq for PreRelease[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.