Either.opEquals

bool opEquals(this This, Rhs)(auto ref Rhs rhs)

Compares two eithers for equality.

Two eithers are equal when the same alternative is active in both and the active payloads compare equal.

Parameters

rhseither to compare with.

Returns

true when both hold equal values of the same alternative.