| 1 |
# Proxy Bit-References |
| 2 |
|
| 3 |
Rust does not permit the use of custom proxy structures in place of true |
| 4 |
reference primitives, so APIs that specify references (like `IndexMut` or |
| 5 |
`DerefMut`) cannot be implemented by types that cannot manifest `&mut` |
| 6 |
references directly. Since `bitvec` cannot produce an `&mut bool` reference |
| 7 |
within a `BitSlice`, it instead uses the `BitRef` proxy type defined in this |
| 8 |
module to provide reference-like work generally, and simply does not define |
| 9 |
`IndexMut<usize>`. |