pub fn opposite(&self) -> Self {
        match self {
            &CompOp::Eq => CompOp::Ne,
            &CompOp::Ne => CompOp::Eq,
            &CompOp::Lt => CompOp::Gt,
            &CompOp::Le => CompOp::Ge,
            &CompOp::Ge => CompOp::Le,
            &CompOp::Gt => CompOp::Lt,
        }
    }
/// Get the opposite comparison operator.
///
/// This uses the following bidirectional rules:
///
/// * `Eq` <-> `Ne`
/// * `Lt` <-> `Gt`
/// * `Le` <-> `Ge`
///
/// # Examples
///
/// ```
/// use version_compare::CompOp;
///
/// assert_eq!(CompOp::Eq.opposite(), CompOp::Ne);
/// assert_eq!(CompOp::Lt.opposite(), CompOp::Gt);
/// assert_eq!(CompOp::Ge.opposite(), CompOp::Le);
/// ```
Get the opposite comparison operator.
This uses the following bidirectional rules.


Get the opposite comparison operator . This uses the following bidirectional rules .
pub fn opposite(&self) -> Self {
        match self {
            &CompOp::Eq => CompOp::Ne,
            &CompOp::Ne => CompOp::Eq,
            &CompOp::Lt => CompOp::Gt,
            &CompOp::Le => CompOp::Ge,
            &CompOp::Ge => CompOp::Le,
            &CompOp::Gt => CompOp::Lt,
        }
    }
pub fn opposite ( & self ) -> Self { match self { & CompOp :: Eq => CompOp :: Ne , & CompOp :: Ne => CompOp :: Eq , & CompOp :: Lt => CompOp :: Gt , & CompOp :: Le => CompOp :: Ge , & CompOp :: Ge => CompOp :: Le , & CompOp :: Gt => CompOp :: Lt , } }
Get the opposite comparison operator.
Get the opposite comparison operator .
&self
&self
examples
```
use version_compare::CompOp.


` ` ` use version_compare :: CompOp .