bitx 0.2.1

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

bits! {
    pub struct InvalidBitPacket: 2.0 {
        0.8 pub flag: u1, // bit must be 0-7
    }
}

fn main() {}