Either.Either.left
Either left(T)(auto ref T value) if (is(T == L)) staticConstruct an Either holding the left alternative.
Parameters
value | value of exactly type L; implicit conversions are rejected so the alternatives can never be confused. |
Returns
the constructed
inout(L) left() ref inout returnReturns 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.