A

Admin • 802.91K Points
Coach

Q. Which trait must be implemented for a type to be hashed in a HashMap?

  • (A) Hash
  • (B) Ord
  • (C) PartialOrd
  • (D) Clone
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
The `Hash` trait is needed for types used as keys in a `HashMap`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.