This is more of a discussion/enhancement rather than an "issue". Reading through the code, I see u1 is saved in a u8.
I imagine Rust might be able to optimize a bool more effectively than a u8 in some situations. It would be interesting to see benchmarks over the effectiveness of bool vs u8 for u1.
I currently don't have a usecase for u1 however. Ordinarily when I want to store 1 bit, I would be using bool anyway.. I am not sure when it would be beneficial to use u1 over bool.
This is more of a discussion/enhancement rather than an "issue". Reading through the code, I see
u1is saved in au8.I imagine Rust might be able to optimize a
boolmore effectively than au8in some situations. It would be interesting to see benchmarks over the effectiveness ofboolvsu8foru1.I currently don't have a usecase for
u1however. Ordinarily when I want to store 1 bit, I would be usingboolanyway.. I am not sure when it would be beneficial to useu1overbool.