Crate memory_layout_codegen
source ·Attribute Macros
- Allows for
field_offset
s to be defined in the struct. All fields in the struct have to be annotated with afield_offset
attribute, and must be defined in-order. Afield_offset
attribute has to include a int literal, which indicates the offset the field should have.