Rational.opCmp

Compares two rationals based on their reduced form.

  1. int opCmp(const(Rational) rhs)
    struct Rational(Z)
    pragma(inline) const
    int
    opCmp
    (
    const(Rational) rhs
    )
    if (
    __traits(isPOD, Z)
    )
  2. int opCmp(Z rhs)
  3. int opCmp(R rhs)