carbon v1.8.0 (2018-09-02T09:54:37Z)
Home
Dub
Repo
Rational.opBinary
carbon
rational
Rational
operator
auto
opBinary
(Rational!U r)
auto
opBinary
(U v)
struct
Rational
(T)
const
auto
opBinary
(
string
op
U
)
(
in
U
v
)
if
(
!
isRationalType
!
U
&&
isLikeInt
!
U
&&
!
find
(["+", "-", "*", "/", "%", "^^"],
op
).
empty
)
if
(
isLikeInt
!
T
&&
!
isFloatingPoint
!
T
)
void
opAssign
(U v)
void
opAssign
(Rational!U r)
typeof
(
this
)
opUnary
()
typeof
(
this
)
opUnary
()
bool
opCast
()
U
opCast
()
U
opCast
()
U
opCast
()
auto
opBinaryRight
(U v)
void
opOpAssign
(Rational!U r)
void
opOpAssign
(U v)
auto
opCmp
(U r)
auto
opCmp
(Rational!U r)
bool
opEquals
(U v)
bool
opEquals
(Rational!U r)
void
toString
(void delegate(const(char)[]) sink, FormatSpec!char fmt)
Meta
Source
See Implementation
carbon
rational
Rational
constructors
this
functions
opAssign
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
toString
properties
den
num
reciprocal
static functions
init
operator