Module fmt

Module fmt 

1.6.0 · Source
Expand description

Utilities for formatting and printing strings.

Structs§

ArgumentsNon-ferrocene_certified
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.
DebugListNon-ferrocene_certified
A struct to help with fmt::Debug implementations.
DebugMapNon-ferrocene_certified
A struct to help with fmt::Debug implementations.
DebugSetNon-ferrocene_certified
A struct to help with fmt::Debug implementations.
DebugStructNon-ferrocene_certified
A struct to help with fmt::Debug implementations.
DebugTupleNon-ferrocene_certified
A struct to help with fmt::Debug implementations.
ErrorNon-ferrocene_certified
The error type which is returned from formatting a message into a stream.
FormatterNon-ferrocene_certified
Configuration for formatting.
FormattingOptionsExperimentalNon-ferrocene_certified
Options for formatting.
FromFnExperimentalNon-ferrocene_certified
Implements fmt::Debug and fmt::Display using a function.
NumBufferExperimentalNon-ferrocene_certified
A buffer wrapper of which the internal size is based on the maximum number of digits the associated integer can have.

Enums§

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

Traits§

BinaryNon-ferrocene_certified
b formatting.
DebugNon-ferrocene_certified
? formatting.
DisplayNon-ferrocene_certified
Format trait for an empty format, {}.
LowerExpNon-ferrocene_certified
e formatting.
LowerHexNon-ferrocene_certified
x formatting.
OctalNon-ferrocene_certified
o formatting.
PointerNon-ferrocene_certified
p formatting.
UpperExpNon-ferrocene_certified
E formatting.
UpperHexNon-ferrocene_certified
X formatting.
WriteNon-ferrocene_certified
A trait for writing or formatting into Unicode-accepting buffers or streams.
NumBufferTraitExperimentalNon-ferrocene_certified
Trait used to describe the maximum number of digits in decimal base of the implemented integer.

Functions§

writeNon-ferrocene_certified
Takes an output stream and an Arguments struct that can be precompiled with the format_args! macro.
from_fnExperimentalNon-ferrocene_certified
Creates a type whose fmt::Debug and fmt::Display impls are provided with the function f.

Type Aliases§

ResultNon-ferrocene_certified
The type returned by formatter methods.

Derive Macros§

DebugNon-ferrocene_certified
Derive macro generating an impl of the trait Debug.