pub fn swap_operands(self) -> CmpOp {
        use op::CmpOp::*;
        match self {
            SGE => SLE,
            SLE => SGE,
            SGT => SLT,
            SLT => SGT,

            UGE => ULE,
            ULE => UGE,
            UGT => ULT,
            ULT => UGT,

            FOGE => FOLE,
            FOLE => FOGE,
            FOGT => FOLT,
            FOLT => FOGT,

            FUGE => FULE,
            FULE => FUGE,
            FUGT => FULT,
            FULT => FUGT,

            _ => self // all other comparisons are symmetric
        }
    }
/// returns the CmpOp X for CmpOp Y, such that (a Y b) is equivalent to (b X a)
returns the CmpOp X for CmpOp Y, such that (a Y b) is equivalent to (b X a)
returns the CmpOp X for CmpOp Y such that ( a Y b ) is equivalent to ( b X a )
pub fn swap_operands(self) -> CmpOp {
        use op::CmpOp::*;
        match self {
            SGE => SLE,
            SLE => SGE,
            SGT => SLT,
            SLT => SGT,
            UGE => ULE,
            ULE => UGE,
            UGT => ULT,
            ULT => UGT,
            FOGE => FOLE,
            FOLE => FOGE,
            FOGT => FOLT,
            FOLT => FOGT,
            FUGE => FULE,
            FULE => FUGE,
            FUGT => FULT,
            FULT => FUGT,
            _ => self // all other comparisons are symmetric
        }
    }
pub fn swap_operands ( self ) -> CmpOp { use op :: CmpOp :: * ; match self { SGE => SLE , SLE => SGE , SGT => SLT , SLT => SGT , UGE => ULE , ULE => UGE , UGT => ULT , ULT => UGT , FOGE => FOLE , FOLE => FOGE , FOGT => FOLT , FOLT => FOGT , FUGE => FULE , FULE => FUGE , FUGT => FULT , FULT => FUGT , _ => self // all other comparisons are symmetric } }
returns the CmpOp X for CmpOp Y, such that (a Y b) is equivalent to (b X a)
returns the CmpOp X for CmpOp Y such that ( a Y b ) is equivalent to ( b X a )
self
self