| 1 |
# Multi-Bit Selection Mask |
| 2 |
|
| 3 |
Unlike [`BitSel`], which enforces a strict one-hot mask encoding, this type |
| 4 |
permits any number of bits to be set or cleared. This is used to accumulate |
| 5 |
selections for batched operations on a register in real memory. |
| 6 |
|
| 7 |
## Type Parameters |
| 8 |
|
| 9 |
- `R`: The register element that this mask governs. |
| 10 |
|
| 11 |
## Construction |
| 12 |
|
| 13 |
This must only be constructed by combining `BitSel` selection masks produced |
| 14 |
through the accepted chains of custody beginning with [`BitIdx`] values. |
| 15 |
Bit-masks not constructed in this manner are not guaranteed to be correct in the |
| 16 |
caller’s context and may lead to incorrect memory behaviors. |
| 17 |
|
| 18 |
[`BitIdx`]: crate::index::BitIdx |
| 19 |
[`BitSel`]: crate::index::BitSel |