Expected.opEquals

Checks whether this Expected object contains a specific expected value.

* opEquals for the value is available only when T != void. * opEquals for the error isn't available, use equality test for Expected in that case.

  1. bool opEquals(const auto ref T rhs)
    struct Expected(T, E = string, Hook = Abort)
    bool
    opEquals
    const
    ()
    (
    const auto ref T rhs
    )
    if (
    !is(E == void) &&
    (
    !is(T == void)
    )
    )
  2. bool opEquals(auto ref T rhs)
  3. bool opEquals(const auto ref Expected!(T, E, Hook) rhs)
  4. bool opEquals(auto ref Expected!(T, E, Hook) rhs)

Meta