Rational.opCast

Casts this to an integer by truncating the fractional part. Equivalent to integerPart, and then casting it to type I.

  1. F opCast()
  2. I opCast()
    struct Rational(SomeIntegral)
    const
    I
    opCast
    (
    I
    )
    ()
    if (
    is(typeof(cast(I)SomeIntegral.init))
    )
    if (
    isIntegerLike!SomeIntegral
    )
  3. Rational!(SomeIntegral) opBinary(Rhs that)
  4. Rational!(SomeIntegral) opBinary(Rhs that)

Meta