Enum version_compare::Part
source · pub enum Part<'a> {
Number(i32),
Text(&'a str),
}
Expand description
Version string part enum.
Each version string is broken down into these version parts when being parsed to a Version
.
Variants§
Number(i32)
Numeric part, most common in version strings.
Holds the numerical value.
Text(&'a str)
A text part.
These parts usually hold text with an yet unknown definition. Holds the string slice.
Trait Implementations§
source§impl<'a> PartialEq for Part<'a>
impl<'a> PartialEq for Part<'a>
impl<'a> Copy for Part<'a>
impl<'a> Eq for Part<'a>
impl<'a> StructuralPartialEq for Part<'a>
Auto Trait Implementations§
impl<'a> Freeze for Part<'a>
impl<'a> RefUnwindSafe for Part<'a>
impl<'a> Send for Part<'a>
impl<'a> Sync for Part<'a>
impl<'a> Unpin for Part<'a>
impl<'a> UnwindSafe for Part<'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