REFERENCE // BOOKMARK THIS
Rust formatting
cheat sheet.
Scan the syntax, compare the output, then expand any row for its formatting trait and copyable Rust example.
SOURCE-BACKEDEXAMPLES: CI-CHECKEDREFERENCE: std::fmt ↗ GROUPSYNTAXOUTPUT
- FORMAT TRAIT / INPUT
- Display
- RUST
format!("{}", 42)