You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this wonderful crate, it makes very readable code!
As a feature request, it'd be convenient to be able to handle the case where set bits are getting discarded in bitpack!(). Sometimes the current behaviour of discarding bits is what I want, but sometimes it's not.
e.g. some API similar to bitpack!() that would get me a Result in the below case, which would be an error if the top 8 bits of a were not zero:
let a:u16 = 0x1234;let b = bitpack!("0000_aaaa_0000_aaaa");
The text was updated successfully, but these errors were encountered:
Thanks for this wonderful crate, it makes very readable code!
As a feature request, it'd be convenient to be able to handle the case where set bits are getting discarded in
bitpack!()
. Sometimes the current behaviour of discarding bits is what I want, but sometimes it's not.e.g. some API similar to
bitpack!()
that would get me aResult
in the below case, which would be an error if the top 8 bits ofa
were not zero:The text was updated successfully, but these errors were encountered: