Crate const_field_offset_macrosource ·
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
- The macro FieldOffsets adds a
FIELD_OFFSETSassociated 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 type