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

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.