Expected.opCast

Implicit conversion to bool.

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

Return Value

Type: bool

true if there is no error set, false otherwise.

Meta