Debian Codegraph @

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

raw
1 # Bit-Vector Extension by Proxy References
2
3 **DO NOT** use this. You *clearly* have a bit-slice. Use
4 [`.extend_from_bitslice()`] instead!
5
6 Iterating over a bit-slice requires loading from memory and constructing a proxy
7 reference for each bit. This is needlessly slow; the specialized method is able
8 to avoid this per-bit cost and possibly even use batched operations.
9
10 [`.extend_from_bitslice()`]: crate::vec::BitVec::extend_from_bitslice