Typedef.toString

Convert wrapped value to a human readable string

  1. string toString()
    struct Typedef(T, T init = T.init, string cookie = null)
    string
    toString
    (
    this T
    )
    ()
  2. void toString(W writer, FormatSpec!char fmt)

Examples

import std.conv : to;

int i = 123;
auto td = Typedef!int(i);
assert(i.to!string == td.to!string);

Meta

Suggestion Box / Bug Report