Duration.opCast

Allow Duration to be used as a boolean.

  1. TickDuration opCast()
  2. bool opCast()
    struct Duration
    @safe pure
    bool
    opCast
    const nothrow @nogc
    (
    T : bool
    )
    ()

Return Value

Type: bool

true if this duration is non-zero.

Suggestion Box / Bug Report