bitx 0.2.2

More ergonomic way to deal with bitfield-like struct.
Documentation
1
2
3
4
5
6
7
8
9
10
use bitx::bits;

bits! {
    pub struct OutOfBoundsPacket: 1.0 {
        0.0 pub flag: u1,
        0.1 pub too_large: u16, // Requires 16 bits, exceeds bounds
    }
}

fn main() {}