Expected.opAssign

Assigns a value or error to an Expected.

Note: This is only allowed when default constructor is also enabled.

struct Expected(T, E = string, Hook = Abort)
static if(isDefaultConstructorEnabled!Hook)
static if(isAssignable!CT)
void
opAssign
()
(
auto ref CT rhs
)
if (
!is(E == void) &&
(
!is(T == void)
)
)

Meta