Module fmt
Utilities for formatting and printing strings.
Structs
- Arguments 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.
-
DebugList
A struct to help with
fmt::Debugimplementations. -
DebugMap
A struct to help with
fmt::Debugimplementations. -
DebugSet
A struct to help with
fmt::Debugimplementations. -
DebugStruct
A struct to help with
fmt::Debugimplementations. -
DebugTuple
A struct to help with
fmt::Debugimplementations. - Error The error type which is returned from formatting a message into a stream.
- Formatter Configuration for formatting.
- FormattingOptions Options for formatting.
-
FromFn
Implements
fmt::Debugandfmt::Displayvia the provided closure. - NumBuffer A buffer wrapper of which the internal size is based on the maximum number of digits the associated integer can have.
Enums
-
Alignment
Possible alignments returned by
Formatter::align -
DebugAsHex
Specifies whether the
Debugtrait should use lower-/upper-case hexadecimal or normal integers. -
Sign
The signedness of a
Formatter(or of aFormattingOptions).
Traits
-
Binary
bformatting. -
Debug
?formatting. -
Display
Format trait for an empty format,
{}. -
LowerExp
eformatting. -
LowerHex
xformatting. - NumBufferTrait Trait used to describe the maximum number of digits in decimal base of the implemented integer.
-
Octal
oformatting. -
Pointer
pformatting. -
UpperExp
Eformatting. -
UpperHex
Xformatting. - Write A trait for writing or formatting into Unicode-accepting buffers or streams.
Functions
-
from_fn
Creates a type whose
fmt::Debugandfmt::Displayimpls are forwarded to the provided closure. -
write
Takes an output stream and an
Argumentsstruct that can be precompiled with theformat_args!macro.
Type Aliases
- Result The type returned by formatter methods.
Macros
-
Debug
Derive macro generating an impl of the trait
Debug.