Enum pep440::PreRelease [−][src]
Expand description
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PreRelease
impl Send for PreRelease
impl Sync for PreRelease
impl Unpin for PreRelease
impl UnwindSafe for PreRelease
Blanket Implementations
Mutably borrows from an owned value. Read more