Struct pep440_rs::PreRelease
source · pub struct PreRelease {
pub kind: PreReleaseKind,
pub number: u64,
}
Expand description
An optional pre-release modifier and number applied to a version.
Fields§
§kind: PreReleaseKind
The kind of pre-release.
number: u64
The number associated with the pre-release.
Trait Implementations§
source§impl Clone for PreRelease
impl Clone for PreRelease
source§fn clone(&self) -> PreRelease
fn clone(&self) -> PreRelease
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PreRelease
impl Debug for PreRelease
source§impl Hash for PreRelease
impl Hash for PreRelease
source§impl Ord for PreRelease
impl Ord for PreRelease
source§fn cmp(&self, other: &PreRelease) -> Ordering
fn cmp(&self, other: &PreRelease) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PreRelease
impl PartialEq for PreRelease
source§fn eq(&self, other: &PreRelease) -> bool
fn eq(&self, other: &PreRelease) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PreRelease
impl PartialOrd for PreRelease
source§fn partial_cmp(&self, other: &PreRelease) -> Option<Ordering>
fn partial_cmp(&self, other: &PreRelease) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PreRelease
impl Eq for PreRelease
impl StructuralPartialEq for PreRelease
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more