Utilities for formatting and printing strings.
Derive macro generating an impl of the trait
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
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
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.
The error type which is returned from formatting a message into a stream.
Configuration for formatting.
Format trait for an empty format,
A trait for writing or formatting into Unicode-accepting buffers or streams.
getcount 🔒 ⚠
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.
run 🔒 ⚠
writefunction takes an output stream, and an
Argumentsstruct that can be precompiled with the
The type returned by formatter methods.