format string
The {} pattern that says how println! and format! show values.
A format string's {} placeholders insert values; {:?} uses Debug, and specs set width, precision, and alignment.
Examples
println!("{:.2}", 2.0 / 3.0)prints0.67, andprintln!("{player} has {lives} lives")fills in the two variables by name.
See also