fn printTaggedUnion(sc: *const ScannedConfig, s: *Serializer, value: anytype) !void
fn printTaggedUnion(sc: *const ScannedConfig, s: *Serializer, value: anytype) !void { switch (value) { inline else => |u, tag| { if (@TypeOf(u) == void) { try s.ident(@tagName(tag)); } else { var sub_struct = try s.beginStruct(.{}); try sub_struct.fieldPrefix(@tagName(tag)); try printValue(sc, s, @TypeOf(u), u); try sub_struct.end(); } }, } }