Setting value through the generated set_* methods of #[bitfield] structs is currently unchecked.
So for some bit specifiers users could potentially insert invalid values with the unwanted effect of them being cut-off.
We should make set_* method panic upon out-of-bounds inputs.
Setting value through the generated
set_*
methods of#[bitfield]
structs is currently unchecked. So for some bit specifiers users could potentially insert invalid values with the unwanted effect of them being cut-off.We should make
set_*
method panic upon out-of-bounds inputs.