Q. Which trait must be implemented to allow a struct to be printed using println! with {:?}?

  • (A) Display
  • (B) Debug
  • (C) Clone
  • (D) Copy
πŸ’¬ Discuss
βœ… Correct Answer: (B) Debug
Explanation: The {:?} formatter requires the Debug trait to be implemented for the type.
Explanation by: Admin
The {:?} formatter requires the Debug trait to be implemented for the type.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
54
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
92%
Success Rate