πŸ“Š Rust
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

πŸ‘οΈ
28
Total Visits
πŸ“½οΈ
5 mo ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
86%
Success Rate