Enum pep440::LocalVersion[][src]

pub enum LocalVersion {
    NumericComponent(u32),
    StringComponent(String),
}

Segments of the “local” part of a version (anything after a +).

These segments can either be strings or numbers, and we store them in a vector in Version, so we need to be able to store both.

Order-comparison of the segments also works differently dependending on whether or not the segment is purely numeric.

Variants

NumericComponent(u32)
StringComponent(String)

Trait Implementations

impl Clone for LocalVersion[src]

impl Debug for LocalVersion[src]

impl Display for LocalVersion[src]

impl Eq for LocalVersion[src]

impl Ord for LocalVersion[src]

impl PartialEq<LocalVersion> for LocalVersion[src]

impl PartialOrd<LocalVersion> for LocalVersion[src]

impl StructuralEq for LocalVersion[src]

impl StructuralPartialEq for LocalVersion[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.