#[solved] How to create a struct with fields that mirror an enum
1 messages · Page 1 of 1 (latest)
oh epic, it already exists
Is there a way to return a packed struct in some way?
do the same thing that function does but change layout to packed in the @type at the end
return @Type(.{ .Packed= .{
.layout = .auto,
.fields = &struct_fields,
.decls = &.{},
.is_tuple = false,
} });
```like so?