Either._payloadFor

inout(L) _payloadFor(bool right)() if (!right) ref inout return

Select a payload reference by compile-time alternative.

Dispatching call sites unroll their branch cases with static foreach, so they keep a single textual handler-call expression (see match and _dispatchPayload); this helper supplies the matching payload reference for each unrolled case.

Parameters

rightcompile-time alternative selector: right when true.

Returns

reference to the selected payload, under this either's

qualifier.

inout(R) _payloadFor(bool right)() if (right) ref inout return

Ditto.