#[derive(TypeLayout)]Expand description
Implements TypeLayout, recording the type’s size, alignment, field offsets and enum variant discriminants as a
const.
Structs and unions record every field’s name and byte offset. Enums record every variant’s name and declaration index, plus its discriminant when the enum is fieldless. Lifetime, type and const parameters are carried onto the impl, so a generic type describes whichever instantiation is asked for.
See the stable_type_layout crate docs for examples; this crate cannot depend on it to run one here.