packed_struct.rs
packed_struct.rs copied to clipboard
Replace generated bit types with const generics
Currently, the bits types contain an associated byte type, which resolve to the exact size of the required byte array. This mapping between particular bit widths and bytes is done using code generation. To migrate this onto const generics, the Rust feature const_evaluatable_checked has to be implemented: https://github.com/rust-lang/rust/issues/76560