rust-bitfield
rust-bitfield copied to clipboard
Add `Into` support for booleans
So that we can use enums even if the field is only 1 bit wide.
It can currently be worked around by using into Type, field1, _: 2, 2;
But it looks wrong and it still requires Type to implement From/Into.