Ensure C-compatible layout for packed structs
- Update edition from 2018 to 2021
- Fix
clippy::redundant_field_names
- Use
repr(C)
for packed structs
Ref: https://doc.rust-lang.org/nomicon/other-reprs.html#reprpacked
This repr is a modifier on
repr(C)
andrepr(Rust)
.
Edited by Tim Crawford