A

Admin • 828.03K Points
Coach

Q. Which trait is used for operator overloading of `==`?

  • (A) Eq
  • (B) Ord
  • (C) PartialEq
  • (D) Compare
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`PartialEq` allows types to be compared using `==` and `!=`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.