| 1 |
# Splicing Iteration |
| 2 |
|
| 3 |
This adapts a [`Drain`] to overwrite the drained section with the contents of |
| 4 |
another iterator. |
| 5 |
|
| 6 |
When this splice is destroyed, the drained section of the source bit-vector is |
| 7 |
replaced with the contents of the replacement iterator. If the replacement is |
| 8 |
not the same length as the drained section, then the bit-vector is resized to |
| 9 |
fit. |
| 10 |
|
| 11 |
See [`BitVec::splice()`] for more information. |
| 12 |
|
| 13 |
## Original |
| 14 |
|
| 15 |
[`vec::Splice`](alloc::vec::Splice) |
| 16 |
|
| 17 |
[`BitVec::splice()`]: crate::vec::BitVec::splice |