A

Admin • 828.03K Points
Coach

Q. Which trait must be implemented to allow sorting with `.sort()`?

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

Explanation by: Admin
`Ord` provides the ordering needed for `.sort()` to work.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.