Skip to content

Glossary: Rust Basics

#[derive(Debug)]

Also written: derive

An attribute that asks the compiler to write the code that lets your struct print with `{:?}`.

Where the book teaches it

Related terms

AttributeDebug formatTrait