Module std::fmt

String formatting

The core of the formatting system is the Formattable protocol. Implementing it on custom types allows them to be formatted using the standard string-formatting macros (format, write, ...) and the convenience standard I/O macros (print, println, ...).

Protocols

A sink for string formatting operations
Types that implement custom debug formatting.
Types that can be formatted. This is the standard way to implement custom formatting for types.

Structs

Error that can occur during a string formatting operation.
Formatter that writes into a string slice.
A formatter that discards output.
Adapter for writting formatted data into a stream

Functions

Types

Macros

Transforms a format string and arguments into a sequence of chunks.
Write a formatted string into a given formatter.
Write a formatted string and a newline into a given formatter.
Format a string into a StringBuf.
Format a string into a preexisting buffer.