Module fmt
Expand description
Allocation-aware formatting helpers.
Structs§
- Display
Fn - Deferred formatting value created by
display_fn.
Functions§
- display_
fn - Build a deferred
Displayvalue from a formatting closure. - format_
with_ capacity - Format
argsinto a new string with the requested initialcapacity. - hex
- Borrow bytes as contiguous lowercase hexadecimal without a prefix.
- try_
format_ into - Clear
output, try to formatargsinto it, and return the resulting string. - utf8_
or_ hex - Display valid UTF-8 as a quoted debug string, or other bytes as uppercase
hexadecimal prefixed with
0x. - write_
joined - Write
fmt::Displayvalues separated byseparatorwithout allocating. - write_
joined_ with - Write values separated by
separator, usingwrite_valuefor each value.