Module core::fmt

1.0.0 · source ·
Expand description

Utilities for formatting and printing strings.

Modules

  • builders 🔒
  • float 🔒
  • macros 🔒
  • num 🔒
    Integer and floating-point number formatting
  • rt 🔒 Experimental
    These are the lang items used by format_args!().

Macros

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.
  • The error type which is returned from formatting a message into a stream.
  • Configuration for formatting.
  • Padding after the end of something. Returned by Formatter::padding.

Enums

  • Possible alignments returned by Formatter::align

Traits

Functions

  • getcount 🔒
  • Since the formatting will be identical for all pointer types, use a non-monomorphized implementation for the actual formatting to reduce the amount of codegen work needed.
  • run 🔒
  • The write function takes an output stream, and an Arguments struct that can be precompiled with the format_args! macro.

Type Definitions

  • The type returned by formatter methods.

Derive Macros

  • Derive macro generating an impl of the trait Debug.