pub struct VersionPart {
pub value: String,
pub cycle_index: Option<usize>,
}Expand description
A single version component.
Holds the string value as it appears in the serialised version and the
index into a cyclic values list (or None for numeric parts).
Fields§
§value: StringCurrent string value of this component.
cycle_index: Option<usize>Index of value within the cyclic values list for this part.
None for numeric parts.
Trait Implementations§
Source§impl Clone for VersionPart
impl Clone for VersionPart
Source§fn clone(&self) -> VersionPart
fn clone(&self) -> VersionPart
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 VersionPart
impl Debug for VersionPart
Source§impl PartialEq for VersionPart
impl PartialEq for VersionPart
impl StructuralPartialEq for VersionPart
Auto Trait Implementations§
impl Freeze for VersionPart
impl RefUnwindSafe for VersionPart
impl Send for VersionPart
impl Sync for VersionPart
impl Unpin for VersionPart
impl UnsafeUnpin for VersionPart
impl UnwindSafe for VersionPart
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