Expand description
Utilities for formatting and printing strings.
Modules
Macros
Structs
This struct represents the generic “argument” which is taken by the Xprintf family of functions. It contains a function to format the given value. At compile time it is ensured that the function and the value have the correct types, and then this struct is used to canonicalize arguments to one type.
Padding after the end of something. Returned by Formatter::padding
.
This struct represents the unsafety of constructing an Arguments
.
It exists, rather than an unsafe function, in order to simplify the expansion
of format_args!(..)
and reduce the scope of the unsafe
block.
This structure represents a safely precompiled version of a format string and its arguments. This cannot be generated at runtime because it cannot safely be done, so no constructors are given and the fields are private to prevent modification.
A struct to help with fmt::Debug
implementations.
A struct to help with fmt::Debug
implementations.
A struct to help with fmt::Debug
implementations.
A struct to help with fmt::Debug
implementations.
A struct to help with fmt::Debug
implementations.
The error type which is returned from formatting a message into a stream.
Configuration for formatting.
Enums
Statics
Traits
b
formatting.
?
formatting.
Format trait for an empty format, {}
.
e
formatting.
x
formatting.
o
formatting.
p
formatting.
E
formatting.
X
formatting.
A trait for writing or formatting into Unicode-accepting buffers or streams.
Functions
Since the formatting will be identical for all pointer types, use a non-monomorphized implementation for the actual formatting to reduce the amount of codegen work needed.
The write
function takes an output stream, and an Arguments
struct
that can be precompiled with the format_args!
macro.
Type Definitions
The type returned by formatter methods.