Expand description
Format forwarding
This module provides wrapper types for each formatting trait other than Debug
which, when Debug-formatted, forward to the original trait instead of Debug.
Each wrapper type is a tuple struct so that it can be used as a named
constructor, such as in .map(FmtDisplay). In addition, a blanket trait adds
extension methods .fmt_<trait_name>>() to provide the corresponding wrap.
Any modifiers in the format template string or struct modifier are passed
through to the desired trait implementation unchanged. The only effect of the
forwarding types in this module is to change the ? template character to one
of the other trait signifiers.
!
Structs§
- Forwards a type’s
Binaryformatting implementation toDebug. - Forwards a type’s
Displayformatting implementation toDebug. - Renders each element of a stream into a list.
- Forwards a type’s
LowerExpformatting implementation toDebug. - Forwards a type’s
LowerHexformatting implementation toDebug. - Forwards a type’s
Octalformatting implementation toDebug. - Forwards a type’s
Pointerformatting implementation toDebug. - Forwards a type’s
UpperExpformatting implementation toDebug. - Forwards a type’s
UpperHexformatting implementation toDebug.
Traits§
- Wraps any value with a format-forward to
Debug.