modular-bitfield 0.13.1

Easily define bitfield types with modular building blocks.
Documentation
1
2
3
4
5
6
7
8
9
use modular_bitfield::prelude::*;

#[bitfield(bits = -1)]
pub struct SignInteger {
    sign: bool,
    value: B31,
}

fn main() {}