inline fn typeContainsSlice(comptime K: type) bool
inline fn typeContainsSlice(comptime K: type) bool { return switch (@typeInfo(K)) { .pointer => |info| info.size == .slice, inline .@"struct", .@"union" => |info| { inline for (info.field_types) |field_type| { if (typeContainsSlice(field_type)) { return true; } } return false; }, else => false, }; }