[−][src]Enum version_compare::version_part::VersionPart
Enum of version string parts.
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> Debug for VersionPart<'a>
[src]
impl<'a> Display for VersionPart<'a>
[src]
impl<'a> PartialEq<VersionPart<'a>> for VersionPart<'a>
[src]
fn eq(&self, other: &VersionPart<'a>) -> bool
[src]
fn ne(&self, other: &VersionPart<'a>) -> bool
[src]
impl<'a> StructuralPartialEq for VersionPart<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for VersionPart<'a>
impl<'a> Send for VersionPart<'a>
impl<'a> Sync for VersionPart<'a>
impl<'a> Unpin for VersionPart<'a>
impl<'a> UnwindSafe for VersionPart<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,