Either._replaceLeft
private
typeof(this) _replaceLeft()(L value) refReplace the active alternative with value as the left one.
The payload arrives by value: an lvalue source is copied into the parameter before the old member is destroyed, which keeps self-assignment safe; an rvalue source is moved. Overwriting may invalidate references into the right alternative, so the replacement is @system when R contains indirections (mirroring Phobos' SumType).
Parameters
value | replacement left payload. |
Returns
this either after replacement.