Either.left

Either left(T)(auto ref T value) if (is(T == L)) static

Construct an Either holding the left alternative.

Parameters

valuevalue of exactly type L; implicit conversions are rejected so the alternatives can never be confused.

Returns

the constructed Either.
inout(L) left() ref inout return

Returns the left payload by reference.

Calling left() while the right alternative is active is a programming error and terminates the process (see the module documentation).

Returns

a reference to the stored L, retaining transitive qualifiers.