phobos-next v0.5.1 (2022-12-21T17:07:30Z)
Home
Dub
Repo
Rational.opBinary
nxt
rational
Rational
Undocumented in source. Be warned that the author may not have intended to support it.
Rational
!(
SomeIntegral
)
opBinary
(Rhs that)
struct
Rational
(SomeIntegral)
public const
Rational
!(
SomeIntegral
)
opBinary
(
string
op
Rhs
)
(
const
scope
Rhs
that
)
if
(
op
== "*" &&
is
(
CommonRational
!(
SomeIntegral
,
Rhs
))
&&
isRational
!
Rhs
)
if
(
isIntegerLike
!
SomeIntegral
)
Rational
!(
SomeIntegral
)
opBinary
(Rhs that)
typeof
(
this
)
opBinary
(Rhs that)
typeof
(
this
)
opBinary
(Rhs that)
auto
opBinary
(Rhs that)
auto
opBinary
(Rhs that)
auto
opBinary
(Rhs that)
Meta
Source
See Implementation
nxt
rational
Rational
functions
inverse
invert
opAssign
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
toString
properties
denominator
fractionPart
integerPart
numerator