pub enum VersionKind {
Numeric {
segments_raw: Vec<String>,
suffix: Suffix,
},
Branch(String),
}Variants§
Numeric
Numeric version: 1+ decimal segments + a stability suffix.
Fields
Branch(String)
Branch-only version, name verbatim (case-preserved except for the special “default” branches that always lower-case).
Trait Implementations§
Source§impl Clone for VersionKind
impl Clone for VersionKind
Source§fn clone(&self) -> VersionKind
fn clone(&self) -> VersionKind
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 Debug for VersionKind
impl Debug for VersionKind
impl Eq for VersionKind
Source§impl Hash for VersionKind
impl Hash for VersionKind
Source§impl PartialEq for VersionKind
impl PartialEq for VersionKind
Source§fn eq(&self, other: &VersionKind) -> bool
fn eq(&self, other: &VersionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VersionKind
Auto Trait Implementations§
impl Freeze for VersionKind
impl RefUnwindSafe for VersionKind
impl Send for VersionKind
impl Sync for VersionKind
impl Unpin for VersionKind
impl UnsafeUnpin for VersionKind
impl UnwindSafe for VersionKind
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