hawkw / mycelium

🍄 an alleged 'operating system'
https://mycelium.elizas.website
MIT License
548 stars 20 forks source link

bitfield: derive `FromBits` for `repr(uN)` enums #443

Closed hawkw closed 1 year ago

hawkw commented 1 year ago

This would be nice. We could just test each variant as uN against the input, so it should be trivial to autogenerate.

hawkw commented 1 year ago

on the other hand i had wanted to do the bitfield crate without any proc macros (mostly for masochism-related reasons)...