Crate memory_layout

Source

Attribute Macrosยง

memory_layout
Allows for field_offsets to be defined in the struct. All fields in the struct have to be annotated with a field_offset attribute, and must be defined in-order. A field_offset attribute has to include a int literal, which indicates the offset the field should have.