Skip to content

Glossary: Rust Basics

Placeholder

Also written: placeholders, format codes

`{}` or `{name}` in printed text, which Rust replaces with a value. Codes like `{:02}`, `{:.2}`, `{:<16}` and `{:>4}` control digits, decimals and alignment.

Where the book teaches it

Related terms

Debug formatformat!