stringifiable

Constructs a stringifiable object from a functor.

  1. auto stringifiable(F functor)
    stringifiable
    (
    F
    )
  2. template stringifiable(alias fun, T...)

Examples

import std.conv : text;
auto f = (void delegate(const(char)[]) sink) => sink("Hello");
assert(stringifiable(f).text == "Hello", stringifiable(f).text);

Meta