Skip to content

Glossary: Rust Beyond the Basics

Display

Also written: fmt::Display, std::fmt::Display

The standard trait that controls how `{}` prints a value. You implement its `fmt` method, and you then also get `to_string()`.

Where the book teaches it

Related terms

Formatterderive