packed_struct.rs icon indicating copy to clipboard operation
packed_struct.rs copied to clipboard

Replace generated bit types with const generics

Open rudib opened this issue 4 years ago • 0 comments

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

rudib avatar May 15 '21 22:05 rudib