VariantN.opEquals

bool opEquals(T)(auto ref T rhs) if (allowed!T || is(immutable T == immutable VariantN)) const

Comparison for equality used by the "==" and "!=" operators.