File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 4517e3912581a0709d5862101e19896e57afc22c
2
+ refs/heads/master: ba41755069998bcaa5fbb3817cc98e97e83240d4
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
Original file line number Diff line number Diff line change @@ -108,12 +108,14 @@ impl Iterator<int> for ZeroStream {
108
108
## Container iterators
109
109
110
110
Containers implement iteration over the contained elements by returning an
111
- iterator object. For example, vector slices have four iterators available:
111
+ iterator object. For example, vector slices several iterators available:
112
112
113
- * `vector.iter()`, for immutable references to the elements
114
- * `vector.mut_iter()`, for mutable references to the elements
115
- * `vector.rev_iter()`, for immutable references to the elements in reverse order
116
- * `vector.mut_rev_iter()`, for mutable references to the elements in reverse order
113
+ * `iter()` and `rev_iter()`, for immutable references to the elements
114
+ * `mut_iter()` and `mut_rev_iter()`, for mutable references to the elements
115
+ * `consume_iter()` and `consume_rev_iter`, to move the elements out by-value
116
+
117
+ A typical mutable container will implement at least `iter()`, `mut_iter()` and
118
+ `consume_iter()` along with the reverse variants if it maintains an order.
117
119
118
120
### Freezing
119
121
You can’t perform that action at this time.
0 commit comments