Expected.value

Returns the expected value if there is one. Otherwise, throws an exception

struct Expected(T, E = Exception)
inout(T)
value
inout
(
)
if (
!is(T == E) &&
!is(T == void)
)

Throws

If E inherits from Throwable, the error value is thrown. Otherwise, an Unexpected instance containing the error value is thrown.

Meta