Enum version_compare::Part
source · 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
impl<'a> Copy for Part<'a>
impl<'a> Eq for Part<'a>
impl<'a> StructuralEq for Part<'a>
impl<'a> StructuralPartialEq for Part<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more