it seems to me that it would be super useful to have core::convert::TryFrom<uN> and core::convert::Into<uN> implemented for generated bitfield types so one can use these types in a generic manner.
(as an aside, have y'all considered / would y'all be open to extending this with constants a-la bitflags? huge fan of not having to manage structure layouts, but i find myself missing the ability to use simple boolean operations on the objects.)
aha! it appears if you add #[repr(uN)] to your #[bitfield] object this happens automatically, though i only discovered this by digging through the proc macros, apparently i can't read the docs
hey thanks for making a neat crate!
it seems to me that it would be super useful to have
core::convert::TryFrom<uN>
andcore::convert::Into<uN>
implemented for generated bitfield types so one can use these types in a generic manner.(as an aside, have y'all considered / would y'all be open to extending this with constants a-la
bitflags
? huge fan of not having to manage structure layouts, but i find myself missing the ability to use simple boolean operations on the objects.)