Expected.opCast

Implicit conversion to bool.

  1. bool opCast()
    struct Expected(T, E = string, Hook = Abort)
    bool
    opCast
    const
    (
    T
    )
    (
    )
    if (
    is(T == bool)
    )
    if (
    !is(E == void) &&
    (
    !is(T == void)
    )
    )
  2. bool opCast()

Return Value

Type: bool

true if there is no error set, false otherwise.

Meta