bitfields 1.0.3

Macro for generating flexible bitfields. Useful for low-level code (embedded or emulators).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0599]: no method named `get_bit` found for struct `Bitfield` in the current scope
  --> tests/compile_error_cases/bitfield_bit_ops_disabled.rs:14:14
   |
3  | #[bitfield(u32)]
   | ---------------- method `get_bit` not found for this struct
...
14 |     bitfield.get_bit(0);
   |              ^^^^^^^
   |
help: there is a method `set_bits` with a similar name
   |
14 -     bitfield.get_bit(0);
14 +     bitfield.set_bits(0);
   |