rust-bitfield icon indicating copy to clipboard operation
rust-bitfield copied to clipboard

Add `Into` support for booleans

Open ithinuel opened this issue 7 years ago • 0 comments

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.

ithinuel avatar Apr 22 '18 19:04 ithinuel