pub struct VersionParts {
pub major: u64,
pub minor: u64,
pub patch: u64,
pub pre_release: Vec<Identifier>,
pub build: Vec<Identifier>,
}Expand description
Owned components of a Version.
Fields§
§major: u64§minor: u64§patch: u64§pre_release: Vec<Identifier>§build: Vec<Identifier>Trait Implementations§
Source§impl Clone for VersionParts
impl Clone for VersionParts
Source§fn clone(&self) -> VersionParts
fn clone(&self) -> VersionParts
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 VersionParts
impl Debug for VersionParts
impl Eq for VersionParts
Source§impl PartialEq for VersionParts
impl PartialEq for VersionParts
Source§fn eq(&self, other: &VersionParts) -> bool
fn eq(&self, other: &VersionParts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VersionParts
Auto Trait Implementations§
impl Freeze for VersionParts
impl RefUnwindSafe for VersionParts
impl Send for VersionParts
impl Sync for VersionParts
impl Unpin for VersionParts
impl UnsafeUnpin for VersionParts
impl UnwindSafe for VersionParts
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