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 MyStruct: 32 {
        #[this_is_not_a_doc_attribute]
        x: 32,
    }

    struct EnforcedWithUnderscore: 32 {
        #[this_is_also_not_a_doc_attribute]
        _x: 32,
    }
}

fn main() {}