AnsiText.toString

Provides this AnsiText as a printable string.

If the implementation is a basic implementation (see the documentation for AnsiText); if the implementation doesn't define its own `toString then AnsiText will generate this function on behalf of the implementation.

Description: For basic implementations this function will call toSink with an Appender!(char[]) as the sink.

For this default generated implementation of toString, it is a seperate String so is fine for any usage. If an implementation defines its own toString then it should also document what the lifetime of its returned string is.

  1. String toString()
    struct AnsiText(alias ImplementationMixin)
    static if(Features == AnsiTextImplementationFeatures.basic && !__traits(hasMember, typeof(this), "toString") && __traits(compiles, ))
    toString
    ()
    ()
  2. void toString(void delegate(const(char)[]) sink)

Return Value

Type: String

This AnsiText as a useable string.

Meta