carbon ~master (2016-11-08T03:28:07Z)
Home
Dub
Repo
Rational.opBinaryRight
carbon
rational
Rational
operator
void
opAssign
(
in
U
v
)
void
opAssign
(
in
Rational
!
U
r
)
typeof
(
this
)
opUnary
()
typeof
(
this
)
opUnary
()
bool
opCast
()
U
opCast
()
U
opCast
()
U
opCast
()
auto
opBinary
(
in
Rational
!
U
r
)
auto
opBinary
(
in
U
v
)
auto
opBinaryRight
(
in
U
v
)
struct
Rational
(T)
auto
opBinaryRight
const
(
string
op
U
)
(
in
U
v
)
if
(
!
isRationalType
!
U
&&
isLikeInt
!
U
&&
!
find
(["+", "-", "*", "/", "%"],
op
).
empty
)
if
(
isLikeInt
!
T
&&
!
isFloatingPoint
!
T
)
void
opOpAssign
(
in
Rational
!
U
r
)
void
opOpAssign
(
const
U
v
)
auto
opCmp
(
auto
ref
const
U
r
)
auto
opCmp
(
auto
ref
const
Rational
!
U
r
)
bool
opEquals
(
auto
ref
const
U
v
)
bool
opEquals
(
auto
ref
const
Rational
!
U
r
)
void
toString
(
scope
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
operator