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(StdDdoc)
    void
    toString
    (
    this This
    Sink
    Char
    )
    (
    ref Sink sink
    ,
    const ref FormatSpec!Char fmt
    )
    if (
    is(NoDuplicates!Types == Types) &&
    )
  3. string toString()
  4. void toString(Sink sink, FormatSpec!Char fmt)

Parameters

sink Sink

Output range to write to.

fmt FormatSpec!Char

Format specifier to use.

See Also

Meta