FLAGSHIP TOOL // STD::FMT
Rust Format Explorer
Parse a Rust replacement field, understand every token, and generate a compiler-ready example.
:format specStarts the format specification for this argument.
>alignment< left, ^ center, or > right alignment.
10widthMinimum output width. A named $ parameter reads a usize from another argument.
.2precisionFloat decimal places or maximum string length; accepts a literal, named $, or *.
3.14Matches Rust for the selected sample value.
println!("{:>10.2}", 3.14159_f64);Explorer scope
one replacement field using the practical std::fmt format_spec subset.
Intentionally unsupported: literal text or multiple replacement fields; numeric positional $ width and precision parameters; raw r# identifiers; positional indices above 16; literal width or precision above 1000; a named value reused as its own dynamic count; positional value 0 combined with .*.