SumType.toString

Handles formatted writing of the SumType's current value.

Not available when compiled with -betterC.

  1. string toString()
  2. void toString(Sink sink, FormatSpec!Char fmt)
    struct SumType(Types...)
    version(!D_BetterC)
    private public
    void
    toString
    (
    this This
    Sink
    Char
    )
    (
    ref Sink sink
    ,
    const ref FormatSpec!Char fmt
    )
    if (
    is(NoDuplicates!Types == Types) &&
    )

Parameters

sink Sink

Output range to write to.

fmt FormatSpec!Char

Format specifier to use.

See Also

std.format.formatValue

Meta