Enum pep440::LocalVersion [−][src]
Expand description
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for LocalVersion
impl Send for LocalVersion
impl Sync for LocalVersion
impl Unpin for LocalVersion
impl UnwindSafe for LocalVersion
Blanket Implementations
Mutably borrows from an owned value. Read more