Duration.opCast

Allow Duration to be used as a boolean.

  1. TickDuration opCast()
  2. 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