#[derive(Pack)]Expand description
Derives lencode::pack::Pack for structs.
- Fields are packed/unpacked in declaration order using their own
Packimpls. - For
#[repr(transparent)]single‑field structs, bulkpack_sliceandunpack_vecoverrides are generated that transmute to/from the inner type’s slice/vec, enabling zero‑copy bulk I/O for newtypes over byte arrays.
§Example
ⓘ
#[repr(transparent)]
#[derive(Pack)]
struct MyPubkey([u8; 32]);