The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Duration.opCast
core
time
Duration
Allow Duration to be used as a boolean.
TickDuration
opCast
()
bool
opCast
()
struct
Duration
@
safe
pure const nothrow @
nogc
bool
opCast
(
T
:
bool
)
(
)
Return Value
Type:
bool
true
if this duration is non-zero.
Meta
Source
See Implementation
core
time
Duration
functions
opBinary
opBinaryRight
opCast
opCmp
opOpAssign
opUnary
toString
properties
isNegative
max
min
total
zero
templates
split
Allow Duration to be used as a boolean.