bitbybit 2.0.0

Efficient implementation of bit-fields where several numbers are packed within a larger number and bit-enums. Useful for drivers, so it works in no_std environments
Documentation
#[test]
fn all_tests() {
    let t = trybuild::TestCases::new();

    // tests that pass
    t.pass("tests/basic.rs");
    t.pass("tests/with_fields.rs");
    t.pass("tests/correct.rs");

    t.compile_fail("tests/no_compile/exhaustive_bitenum.rs");
    t.compile_fail("tests/no_compile/non_exhaustive_bitenum.rs");
    t.compile_fail("tests/no_compile/invalid_field_range.rs");
    t.compile_fail("tests/no_compile/invalid_field_access.rs");

    t.compile_fail("tests/no_compile/overlapping_bitfield_bits.rs");
    t.compile_fail("tests/no_compile/overlapping_bitfield_u8_fields.rs");
    t.compile_fail("tests/no_compile/overlapping_bitfield_arrays.rs");
    t.compile_fail("tests/no_compile/overlapping_bitfield_arrays_with_stride.rs");

    t.compile_fail("tests/no_compile/invalid_bit_pos/*.rs");

    t.compile_fail("tests/no_compile/missing_fields_in_builder.rs");
}