dmd ~master (2023-11-01T14:17:50Z)
Dub
Repo
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.