A

Admin • 828.03K Points
Coach

Q. Which trait is required to print a struct using {:?}?

  • (A) Display
  • (B) Debug
  • (C) Clone
  • (D) Copy
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`Debug` trait allows printing structs with `{:?}`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.