Crate const_field_offset_macro
source ·Expand description
This crate allow to get the offset of a field of a structure in a const or static context.
To be used re-exported from the const_field_offset
crate
Derive Macros§
- The macro FieldOffsets adds a
FIELD_OFFSETS
associated const to the struct. That is an object which has fields with the same name as the fields of the original struct, each field is of typeconst_field_offset::FieldOffset