formatObject

Formats an aggregate object, with all its printable members with all their printable values. Overload that writes to a passed output range sink.

alias formatObject = formatObjects

Examples

struct Foo
{
    int foo = 42;
    string bar = "arr matey";
    float f = 3.14f;
    double d = 9.99;
}

Foo foo, bar;
Appender!(char[]) sink;

sink.formatObjects!(Yes.all, Yes.coloured)(foo);
sink.formatObjects!(No.all, No.coloured)(bar);
writeln(sink.data);

Meta