A

Admin • 831.35K Points
Coach

Q. Which trait allows comparison using == in Rust?

  • (A) Clone
  • (B) PartialEq
  • (C) Ord
  • (D) Debug
  • Correct Answer - Option(B)
  • Views: 18
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
PartialEq enables 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.