IntFlags.toString

Get a string representation of the list of set flags.

  1. void toString(Writer sink, FormatSpec!Char fmt)
  2. void toString(Writer sink)
  3. string toString()
    struct IntFlags
    const pure
    string
    toString
    ()

Examples

IntFlags flags;
assert(flags.toString() == "{}");

flags = IntFlag.undef;
assert((flags.toString() == "{undefined result}") && (flags.toString() == IntFlag.undef.toString()));

flags |= IntFlag.imag;
assert(flags.toString() == "{undefined result, imaginary component}", flags.toString());

Meta