modular-bitfield 0.11.2

Allows to easily define bitfield types with modular building blocks.
Documentation
use modular_bitfield::prelude::*;

#[bitfield]
#[repr(u64)] // Too many bits!
pub struct SignedInt {
    sign: bool,
    value: B31,
}

fn main() {}