Skip to main content

Module fmt

Module fmt 

1.6.0 · Source
Expand description

Utilities for formatting and printing strings.

Structs§

Argumentsvalidated
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.
DebugListvalidated
A struct to help with fmt::Debug implementations.
DebugMapvalidated
A struct to help with fmt::Debug implementations.
DebugSetvalidated
A struct to help with fmt::Debug implementations.
DebugStructvalidated
A struct to help with fmt::Debug implementations.
DebugTuplevalidated
A struct to help with fmt::Debug implementations.
Errorvalidated
The error type which is returned from formatting a message into a stream.
Formattervalidated
Configuration for formatting.
FromFnvalidated
Implements fmt::Debug and fmt::Display via the provided closure.
FormattingOptionsExperimentalvalidated
Options for formatting.
NumBufferExperimentalvalidated
A buffer wrapper of which the internal size is based on the maximum number of digits the associated integer can have.

Enums§

Alignmentvalidated
Possible alignments returned by Formatter::align
DebugAsHexExperimentalvalidated
Specifies whether the Debug trait should use lower-/upper-case hexadecimal or normal integers.
SignExperimentalvalidated
The signedness of a Formatter (or of a FormattingOptions).

Traits§

Binary
b formatting.
Debug
? formatting.
Display
Format trait for an empty format, {}.
LowerExp
e formatting.
LowerHex
x formatting.
Octal
o formatting.
Pointer
p formatting.
UpperExp
E formatting.
UpperHex
X formatting.
Write
A trait for writing or formatting into Unicode-accepting buffers or streams.
NumBufferTraitExperimental
Trait used to describe the maximum number of digits in decimal base of the implemented integer.

Functions§

from_fnvalidated
Creates a type whose fmt::Debug and fmt::Display impls are forwarded to the provided closure.
writevalidated
Takes an output stream and an Arguments struct that can be precompiled with the format_args! macro.

Type Aliases§

Result
The type returned by formatter methods.

Derive Macros§

Debug
Derive macro generating an impl of the trait Debug.