SafeInt.toString

Get a string representation of this value.

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

Examples

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

Meta