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::Debugimplementations. - A struct to help with
fmt::Debugimplementations. - A struct to help with
fmt::Debugimplementations. - A struct to help with
fmt::Debugimplementations. - A struct to help with
fmt::Debugimplementations. - A
Valuewhich 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
Optionvalues. - A wrapper type that formats the wrapped value using a provided function.
- Configuration for formatting.
- Wraps a type implementing
core::fmt::Writeso that every newline written to that writer is indented a given amount. - FormatterFnExperimentalImplements
fmt::Debugandfmt::Displayusing a function.
Enums§
- Possible alignments returned by
Formatter::align
Traits§
bformatting.?formatting.- Format trait for an empty format,
{}. eformatting.xformatting.oformatting.pformatting.Eformatting.Xformatting.- 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::Debugimplementation, with “alternate mode” set - Format the provided value using its
core::fmt::Binaryimplementation. - Formats a list of
F-typed values to the providedwriter, delimited with commas. - Wraps a type implementing
fmt::Debugas aValuethat can be recorded using itsDebugimplementation. - Wraps a type implementing
fmt::Displayas aValuethat can be recorded using itsDisplayimplementation. - Format the provided value using its
core::fmt::LowerHeximplementation. - Format the provided value using its
core::fmt::Pointerimplementation. - Takes an output stream and an
Argumentsstruct 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.