Skip to main content

Mojo module

format

Implements a formatter abstraction for objects that can format themselves to a string.

Structs

  • Formatter: A Formatter is used by types implementing the Formattable trait to write bytes to the underlying formatter output buffer or stream.

Traits

  • Formattable: The Formattable trait describes a type that can be converted to a stream of UTF-8 encoded data by writing to a formatter object.
  • ToFormatter: The ToFormatter trait describes a type that can be written to by a Formatter object.