The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
Duration.opCast
core
time
Duration
Allow Duration to be used as a boolean.
TickDuration
opCast
()
bool
opCast
()
struct
Duration
@
safe
pure
bool
opCast
const nothrow @
nogc
(
T
:
bool
)
(
)
Return Value
Type:
bool
true
if this duration is non-zero.
core
time
Duration
functions
isNegative
opBinary
opBinaryRight
opCast
opCmp
opOpAssign
opUnary
toString
total
static functions
max
min
zero
templates
split
Suggestion Box / Bug Report
Allow Duration to be used as a boolean.