R

Ravina • 3.96K Points
Extraordinary

Q. Which trait is required to use the `==` operator?

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

Explanation by: Ravina
`PartialEq` allows comparison using `==`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.