File: IntoIterator.md

package info (click to toggle)
rust-bitvec 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,780 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# Bit-Vector Iteration

Bit-vectors have the advantage that iteration consumes the whole structure, so
they can simply freeze the allocation into a bit-box, then use its iteration and
destructor.

## Original

[`impl<T> IntoIterator for Vec<T>`][orig]

[orig]: https://doc.rust-lang.org/alloc/vec/struct.Vec.html#impl-IntoIterator