Skip to content
FutureBlitz

    Install

    Import std.core.interfaces

    Formattable

    std.core.interfaces

    interface

    Public Interface Formattable Extends Printable

    A value that takes a format spec, the part after the ':' in "{price:.2}" or Format's "{0:>8}": Format gives its text for the spec, or Null when it doesn't take that spec. The numbers, Bool, String, and Enums are Formattable, by the specs the compiler checks.

    std/core/interfaces.fb, line 92

    • Method Format(spec: String): String? method #

      Its text for a format spec, like ".2" or ">8", or Null when it doesn't take that spec.

    Report an issue with this page or with FutureBlitz on GitHub.