Ulid.toString

string toString() const @safe pure nothrow

Returns

the canonical text form, in a new GC-allocated string.
void toString(W)(ref W sink) if (isOutputRange!(W, char)) const

Writes the canonical text form to an output range without allocating. This is the overload std.format and writeln use.

Parameters

sinkan output range of char, such as an Appender!string or a void delegate(scope const(char)[]).