pub fn factor(&self) -> i8 {
        match self {
            &CompOp::Eq | &CompOp::Ne => 0,
            &CompOp::Lt | &CompOp::Le => -1,
            &CompOp::Gt | &CompOp::Ge => 1,
        }
    }
/// Get a factor (number) for this comparison operator.
/// These factors can be useful for quick calculations.
///
/// The following factor numbers are returned:
///
/// * `Eq` or `Ne` -> ` 0 `
/// * `Lt` or `Le` -> `-1`
/// * `Gt` or `Ge` -> ` 1`
///
/// # Examples
///
/// ```
/// use version_compare::Version;
///
/// let ver_a = Version::from("1.2.3").unwrap();
/// let ver_b = Version::from("1.3").unwrap();
///
/// assert_eq!(ver_a.compare(&ver_b).factor(), -1);
/// assert_eq!(10 * ver_b.compare(&ver_a).factor(), 10);
/// ```
Get a factor (number) for this comparison operator.
These factors can be useful for quick calculations.

The following factor numbers are returned.


Get a factor ( number ) for this comparison operator . These factors can be useful for quick calculations . The following factor numbers are returned .
pub fn factor(&self) -> i8 {
        match self {
            &CompOp::Eq | &CompOp::Ne => 0,
            &CompOp::Lt | &CompOp::Le => -1,
            &CompOp::Gt | &CompOp::Ge => 1,
        }
    }
pub fn factor ( & self ) -> i8 { match self { & CompOp :: Eq | & CompOp :: Ne => 0 , & CompOp :: Lt | & CompOp :: Le => - 1 , & CompOp :: Gt | & CompOp :: Ge => 1 , } }
Get a factor (number) for this comparison operator.
Get a factor ( number ) for this comparison operator .
&self
&self
examples
```
use version_compare::Version.




` ` ` use version_compare :: Version .