pub enum Identifier<'a> {
Numeric(u64),
Alpha(&'a str),
}Expand description
A parsed pre-release identifier: either a numeric value or an alphanumeric string.
Variants§
Trait Implementations§
Source§impl<'a> Clone for Identifier<'a>
impl<'a> Clone for Identifier<'a>
Source§fn clone(&self) -> Identifier<'a>
fn clone(&self) -> Identifier<'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 moreimpl<'a> Copy for Identifier<'a>
Source§impl<'a> Debug for Identifier<'a>
impl<'a> Debug for Identifier<'a>
impl<'a> Eq for Identifier<'a>
Source§impl<'a> Ord for Identifier<'a>
impl<'a> Ord for Identifier<'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 Identifier<'a>
impl<'a> PartialEq for Identifier<'a>
Source§fn eq(&self, other: &Identifier<'a>) -> bool
fn eq(&self, other: &Identifier<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for Identifier<'a>
impl<'a> PartialOrd for Identifier<'a>
impl<'a> StructuralPartialEq for Identifier<'a>
Auto Trait Implementations§
impl<'a> Freeze for Identifier<'a>
impl<'a> RefUnwindSafe for Identifier<'a>
impl<'a> Send for Identifier<'a>
impl<'a> Sync for Identifier<'a>
impl<'a> Unpin for Identifier<'a>
impl<'a> UnsafeUnpin for Identifier<'a>
impl<'a> UnwindSafe for Identifier<'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