Enum version_compare::version_part::VersionPart
[−]
[src]
pub enum VersionPart<'a> {
Number(i32),
Text(&'a str),
}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> PartialEq for VersionPart<'a>[src]
fn eq(&self, __arg_0: &VersionPart<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &VersionPart<'a>) -> bool
This method tests for !=.