Either.Either.right
Either right(T)(auto ref T value) if (is(T == R)) staticConstruct an Either holding the right alternative.
Parameters
value | value of exactly type R; implicit conversions are rejected so the alternatives can never be confused. |
Returns
the constructed
inout(R) right() ref inout returnReturns the right payload by reference.
Calling right() while the left alternative is active is a programming error and terminates the process (see the module documentation).
Returns
a reference to the stored
R, retaining transitive qualifiers.