Crate memory_layout
source ·Attribute Macros
- Allows for
field_offsets to be defined in the struct. All fields in the struct have to be annotated with afield_offsetattribute, and must be defined in-order. Afield_offsetattribute has to include a int literal, which indicates the offset the field should have.