| 1 |
# Boxed Bit-Slice Iteration |
| 2 |
|
| 3 |
This module contains the by-value iterator used by both `BitBox` and `BitVec`. |
| 4 |
In the standard library, this iterator is defined under `alloc::vec`, not |
| 5 |
`alloc::boxed`, as `Box` already has an iteration implementation that forwards |
| 6 |
to its boxed value. |
| 7 |
|
| 8 |
It is moved here for simplicity: both `BitBox` and `BitVec` iterate over a |
| 9 |
dynamic bit-slice by value, and must deƤllocate the region when dropped. As |
| 10 |
`BitBox` has a smaller value than `BitVec`, it is used as the owning handle for |
| 11 |
the bit-slice being iterated. |