Debian Codegraph @

debian/rust-vendor/bitvec/doc/vec/iter/Drain.md

raw
1 # Draining Iteration
2
3 This structure iterates over a subset of a bit-vector, yielding each bit and
4 removing it completely from the source.
5
6 Each drain locks the bit-vector that created it until the drain is either
7 destroyed or forgotten. If a drain is leaked rather than being allowed to drop
8 normally, the source bit-vector is only guaranteed to have contents up to the
9 original start of the drain. All further contents are unspecified.
10
11 See [`BitVec::drain()`] for more details.
12
13 ## Original
14
15 [`vec::Drain`](alloc::vec::Drain)
16
17 [`BitVec::drain()`]: crate::vec::BitVec::drain