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 using fmt::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.
  • Wraps a type implementing core::fmt::Write so that every newline written to that writer is indented a given amount.
  • FormatterFnExperimental
    Implements fmt::Debug and fmt::Display using a function.

Enums§

  • Possible alignments returned by Formatter::align

Traits§

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 provided writer, delimited with commas.
  • Wraps a type implementing fmt::Debug as a Value that can be recorded using its Debug implementation.
  • Wraps a type implementing fmt::Display as a Value that can be recorded using its Display implementation.
  • Format the provided value using its core::fmt::LowerHex implementation.
  • Borrows an Option as a FmtOption that formats the inner value if the Option is Some, or emits a customizable string if the Option is None.
  • Format the provided value using its core::fmt::Pointer implementation.
  • Takes an output stream and an Arguments struct that can be precompiled with the format_args! macro.

Type Aliases§

  • The type returned by formatter methods.

Derive Macros§

  • Derive macro generating an impl of the trait Debug.