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