SafeInt.toString

Get a string representation of this value.

  1. void toString(Writer sink, FormatSpec!Char fmt)
    struct SafeInt(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
    const @trusted
    void
    toString
    (
    Writer
    Char
    )
    (
    Writer sink
    ,
    FormatSpec!Char fmt = (FormatSpec!Char).init
    )
    if (
    isIntegral!N &&
    )
  2. string toString()

Examples

import checkedint.throws : safeInt; // use IntFlagPolicy.throws
assert(safeInt(-753).toString() == "-753");

Meta