A

Admin • 833.24K Points
Coach

Q. What does `derive(Debug)` allow you to do?

  • (A) Add debugging breakpoints
  • (B) Enable println! for the struct
  • (C) Print struct using {:?}
  • (D) Add logging
  • Correct Answer - Option(C)
  • Views: 34
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`#[derive(Debug)]` allows printing with the {:?} formatter.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.