carbon v1.5.4 (2015-09-23T08:11:56Z)
Home
Dub
Repo
Rational.opUnary
carbon
rational
Rational
operator
typeof
(
this
)
opUnary
()
struct
Rational
(T)
const
typeof
(this)
opUnary
(
string
op
)
(
)
if
(
!
find
(["-", "+"],
op
).
empty
)
if
(
isLikeInt
!
T
&&
!
isFloatingPoint
!
T
)
typeof
(
this
)
opUnary
()
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