AnsiTextLite.toString

The sink-based version of toString, which doesn't allocate by itself unless the sink decides to allocate.

  1. string toString()
  2. void toString(void delegate(const(char)[]) sink)
    struct AnsiTextLite
    const
    void
    toString
    (
    scope void delegate
    (
    const(char)[]
    )
    sink
    )

Parameters

sink void delegate
(
const(char)[]
)

The sink to output into.

See Also

toSink for a templatised version of this function which can infer attributes, and supports any form of Output Range instead of just a delegate.

Meta