Result.opAssign

Result opAssign()(ref Result rhs) ref

Replace the active alternative by delegating to the storage's assignment.

Assignment is @system when the storage's assignment is @system, in particular when replacing alternatives could invalidate a payload reference containing pointers. Payload copy/destruction attributes also propagate.

Parameters

rhsresult to copy (lvalue) or move (rvalue).

Returns

this result after assignment.
Result opAssign()(Result rhs) ref

Ditto.