AnsiTextLite.toString

Notes: This struct implements the sink-based toString which performs no allocations, so the likes of std.stdio.writeln will automatically use the sink-based version if you pass this struct to it directly.

  1. string toString()
    struct AnsiTextLite
    @trusted nothrow const
    static if(!BetterC)
    string
    toString
    ()
  2. void toString(void delegate(const(char)[]) sink)

Return Value

Type: string

A GC-allocated string containing this AnsiTextLite as an ANSI-encoded string, ready for printing.

Meta