Module fmt
Source Expand description
Strings formatting.
Extends: std::{fmt}
- format
alloc
alloc
Creates a String using interpolation of runtime expressions.- format_args
core
Constructs parameters for the other string-formatting macros.- format_buf
- Returns a formatted
str
slice backed by a buffer, non-allocating. - write
core
Writes formatted data into a buffer.- writeln
core
Writes formatted data into a buffer, with a newline appended.
- DebugList
core
A struct to help with Debug
implementations.- DebugMap
core
A struct to help with Debug
implementations.- DebugSet
core
A struct to help with Debug
implementations.- DebugStruct
core
A struct to help with Debug
implementations.- DebugTuple
core
A struct to help with Debug
implementations.- Fmt
- 🌐
A string formatting namespace.
- FmtArguments
core
Represents a safely precompiled version of a format string and its arguments.- FmtError
- 🚩
core
The error type which is returned from formatting a message into a stream. - Formatter
core
Configuration for formatting.
- FmtAlignment
core
Possible alignments returned by Formatter::align
.
- Binary
core
b
formatting.- Debug
core
?
formatting.- Display
core
Format trait for an empty format, {}
.- FmtWrite
core
Writing or formatting into Unicode-accepting buffers or streams.- LowerExp
core
e
formatting.- LowerHex
core
x
formatting.- NumToStr
fmt
- Converts a number into a string representation, storing it into a byte slice.
- Octal
core
o
formatting.- Pointer
core
p
formatting.- UpperExp
core
E
formatting.- UpperHex
core
X
formatting.
- FmtResult
- ⚖️
The type returned by formatter methods.
- Debug
core
?
formatting.