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 SuffixPacket: 1.0 {
        0usize pub flag: u1, // suffixes are not allowed
    }
}

fn main() {}