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()`.
Glossary: Rust Beyond the Basics
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()`.