mvbitfield 0.2.0

Generates types to work with bit-aligned fields.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use mvbitfield::prelude::*;

bitfield! {
    struct BinaryStructWidth: 2 {
        x: 0b10,
    }

    struct OctalWidth: 8 {
        x: 0o10,
    }

    struct HexWidth: 16 {
        x: 0x10,
    }
}