Ion serialization function with pretty formatting and custom output range.
import mir.format: stringBuf; auto buffer = stringBuf; static struct S { int a; } serializeTextPretty!" "(buffer, S(4)); assert(buffer.data == "{\n a: 4\n}");
See Implementation
Ion serialization function with pretty formatting and custom output range.