pub struct PreRelease<'a> { /* private fields */ }Expand description
The pre-release portion of a SemVer version (after the -).
Implementations§
Source§impl<'a> PreRelease<'a>
impl<'a> PreRelease<'a>
pub fn identifiers(&self) -> &[Identifier<'a>]
Trait Implementations§
Source§impl<'a> Clone for PreRelease<'a>
impl<'a> Clone for PreRelease<'a>
Source§fn clone(&self) -> PreRelease<'a>
fn clone(&self) -> PreRelease<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PreRelease<'a>
impl<'a> Debug for PreRelease<'a>
Source§impl<'a> Display for PreRelease<'a>
impl<'a> Display for PreRelease<'a>
impl<'a> Eq for PreRelease<'a>
Source§impl<'a> Ord for PreRelease<'a>
impl<'a> Ord for PreRelease<'a>
1.21.0 (const: unstable) · 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<'a> PartialEq for PreRelease<'a>
impl<'a> PartialEq for PreRelease<'a>
Source§fn eq(&self, other: &PreRelease<'a>) -> bool
fn eq(&self, other: &PreRelease<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for PreRelease<'a>
impl<'a> PartialOrd for PreRelease<'a>
impl<'a> StructuralPartialEq for PreRelease<'a>
Auto Trait Implementations§
impl<'a> Freeze for PreRelease<'a>
impl<'a> RefUnwindSafe for PreRelease<'a>
impl<'a> Send for PreRelease<'a>
impl<'a> Sync for PreRelease<'a>
impl<'a> Unpin for PreRelease<'a>
impl<'a> UnsafeUnpin for PreRelease<'a>
impl<'a> UnwindSafe for PreRelease<'a>
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