Module mycelium_util::fmt
source · Expand description
Text formatting utilities.
Structs
- 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.
- A struct to help with
fmt::Debug
implementations. - A struct to help with
fmt::Debug
implementations. - A struct to help with
fmt::Debug
implementations. - A struct to help with
fmt::Debug
implementations. - A struct to help with
fmt::Debug
implementations. - A
Value
which serializes as a string usingfmt::Debug
. - The error type which is returned from formatting a message into a stream.
- A utility to assist with formatting
Option
values. - A wrapper type that formats the wrapped value using a provided function.
- Configuration for formatting.
- FormatterFnExperimentalImplements
fmt::Debug
andfmt::Display
using a function. - Wraps a type implementing
core::fmt::Write
so that every newline written to that writer is indented a given amount.
Enums
- Possible alignments returned by
Formatter::align
Traits
b
formatting.?
formatting.- Format trait for an empty format,
{}
. e
formatting.x
formatting.o
formatting.p
formatting.E
formatting.X
formatting.- A trait for writing or formatting into Unicode-accepting buffers or streams.
- Extension trait adding additional methods to types implementing
core::fmt::Write
.
Functions
- Format the provided value using its
core::fmt::Debug
implementation, with “alternate mode” set - Format the provided value using its
core::fmt::Binary
implementation. - Formats a list of
F
-typed values to the providedwriter
, delimited with commas. - Wraps a type implementing
fmt::Debug
as aValue
that can be recorded using itsDebug
implementation. - Wraps a type implementing
fmt::Display
as aValue
that can be recorded using itsDisplay
implementation. - Format the provided value using its
core::fmt::LowerHex
implementation. - Format the provided value using its
core::fmt::Pointer
implementation. - The
write
function takes an output stream, and anArguments
struct that can be precompiled with theformat_args!
macro.
Type Aliases
- The type returned by formatter methods.
Derive Macros
- Derive macro generating an impl of the trait
Debug
.