Skip to main content

One doc tagged with "debug"

View all tags

The `Debug` Trait and Printing Structs

So far, when we've wanted to inspect a value, we've used the println! macro with the {} format specifier. However, if you try to do this with a struct you've defined, you'll run into an error.