Either._readRight

private _RightBox!S _readRight(S)(return ref S storage) if (is(S == Storage) || is(S == const(Storage)) || is(S == immutable(Storage)) || is(S == inout(Storage))) static ref pure nothrow @nogc @trusted

Read the right alternative's storage without qualifier loss.

Parameters

storageunion storage to read, under any qualifier.

Returns

reference to the right alternative's wrapper, same qualifier.