packed_bits 0.2.0

Memory-efficient bit packing library
Documentation
error[E0080]: attempt to compute `0_usize - 1_usize`, which would overflow
 --> tests/ui/oversized_fields.rs:3:1
  |
3 | / packed_bits! {
4 | |     struct OversizedFields(u8) {
5 | |         _a: 5,
6 | |         _b: 4,
7 | |     }
8 | | }
  | |_^ evaluation of `OversizedFields::new::_::{constant#0}` failed here
  |
  = note: this error originates in the macro `$crate::static_assertions::const_assert` which comes from the expansion of the macro `packed_bits` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0080]: attempt to compute `0_usize - 1_usize`, which would overflow
  --> tests/ui/oversized_fields.rs:10:1
   |
10 | / packed_bits! {
11 | |     struct RGB(u16) {
12 | |         red: 8,
13 | |         green: 8,
...  |
16 | | }
   | |_^ evaluation of `RGB::new::_::{constant#0}` failed here
   |
   = note: this error originates in the macro `$crate::static_assertions::const_assert` which comes from the expansion of the macro `packed_bits` (in Nightly builds, run with -Z macro-backtrace for more info)