Skip to content

Glossary: Rust Basics

format!

A macro that works like `println!` with the same placeholders but returns a new `String` instead of printing.

Where the book teaches it

Related terms

MacroPlaceholderString