Enum ambient_project::VersionSuffix
source · pub enum VersionSuffix {
Other(String),
Dev,
Alpha(Option<NonZeroUsize>),
Beta(Option<NonZeroUsize>),
ReleaseCandidate(Option<NonZeroUsize>),
Final,
}
Variants§
Other(String)
Dev
Alpha(Option<NonZeroUsize>)
Beta(Option<NonZeroUsize>)
ReleaseCandidate(Option<NonZeroUsize>)
Final
Implementations§
source§impl VersionSuffix
impl VersionSuffix
pub fn new_from_str(id: &str) -> Result<Self, VersionError>
Trait Implementations§
source§impl Clone for VersionSuffix
impl Clone for VersionSuffix
source§fn clone(&self) -> VersionSuffix
fn clone(&self) -> VersionSuffix
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 VersionSuffix
impl Debug for VersionSuffix
source§impl Default for VersionSuffix
impl Default for VersionSuffix
source§fn default() -> VersionSuffix
fn default() -> VersionSuffix
Returns the “default value” for a type. Read more
source§impl Display for VersionSuffix
impl Display for VersionSuffix
source§impl Hash for VersionSuffix
impl Hash for VersionSuffix
source§impl Ord for VersionSuffix
impl Ord for VersionSuffix
source§fn cmp(&self, other: &VersionSuffix) -> Ordering
fn cmp(&self, other: &VersionSuffix) -> 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<VersionSuffix> for VersionSuffix
impl PartialEq<VersionSuffix> for VersionSuffix
source§fn eq(&self, other: &VersionSuffix) -> bool
fn eq(&self, other: &VersionSuffix) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VersionSuffix> for VersionSuffix
impl PartialOrd<VersionSuffix> for VersionSuffix
source§fn partial_cmp(&self, other: &VersionSuffix) -> Option<Ordering>
fn partial_cmp(&self, other: &VersionSuffix) -> 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 Eq for VersionSuffix
impl StructuralEq for VersionSuffix
impl StructuralPartialEq for VersionSuffix
Auto Trait Implementations§
impl RefUnwindSafe for VersionSuffix
impl Send for VersionSuffix
impl Sync for VersionSuffix
impl Unpin for VersionSuffix
impl UnwindSafe for VersionSuffix
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.