Overloading Eq with different types

Is there a way to overload the "==" operator for unequal types? (Similar as Add<RHS=...>).

Yes you can, just implement the PartialEq trait

1 Like