@@ -10,6 +10,9 @@ use crate::IntMap;
10
10
11
11
// ***************** Iter *********************
12
12
13
+ /// An iterator over the entries of a [`IntMap`]
14
+ ///
15
+ /// This struct is created by [`IntMap::iter`].
13
16
pub struct Iter < ' a , K : IntKey , V > {
14
17
inner : IterFlatten < SliceIter < ' a , Vec < ( K , V ) > > > ,
15
18
}
@@ -33,6 +36,9 @@ impl<'a, K: IntKey, V> Iterator for Iter<'a, K, V> {
33
36
34
37
// ***************** Iter Mut *********************
35
38
39
+ /// A mutable iterator over the entries of a [`IntMap`].
40
+ ///
41
+ /// This struct is created by [`IntMap::iter_mut`].
36
42
pub struct IterMut < ' a , K : IntKey , V > {
37
43
inner : IterFlatten < SliceIterMut < ' a , Vec < ( K , V ) > > > ,
38
44
}
@@ -56,6 +62,9 @@ impl<'a, K: IntKey, V> Iterator for IterMut<'a, K, V> {
56
62
57
63
// ***************** Keys Iter *********************
58
64
65
+ /// An iterator over the keys of a [`IntMap`].
66
+ ///
67
+ /// This struct is created by [`IntMap::keys`].
59
68
pub struct Keys < ' a , K : IntKey , V > {
60
69
pub ( crate ) inner : Iter < ' a , K , V > ,
61
70
}
@@ -75,6 +84,9 @@ impl<'a, K: IntKey, V> Iterator for Keys<'a, K, V> {
75
84
76
85
// ***************** Values Iter *********************
77
86
87
+ /// An iterator over the values of a [`IntMap`].
88
+ ///
89
+ /// This struct is created by [`IntMap::values`].
78
90
pub struct Values < ' a , K : IntKey , V > {
79
91
pub ( crate ) inner : Iter < ' a , K , V > ,
80
92
}
@@ -94,6 +106,9 @@ impl<'a, K: IntKey, V> Iterator for Values<'a, K, V> {
94
106
95
107
// ***************** Values Mut *********************
96
108
109
+ /// A mutable iterator over the values of a [`IntMap`].
110
+ ///
111
+ /// This struct is created by [`IntMap::values_mut`].
97
112
pub struct ValuesMut < ' a , K : IntKey , V > {
98
113
pub ( crate ) inner : IterMut < ' a , K , V > ,
99
114
}
@@ -123,6 +138,9 @@ impl<K: IntKey, V> IntoIterator for IntMap<K, V> {
123
138
}
124
139
}
125
140
141
+ /// An owning iterator over the entries of a [`IntMap`].
142
+ ///
143
+ /// This struct is created by [`IntMap::into_iter`].
126
144
pub struct IntoIter < K : IntKey , V > {
127
145
inner : IterFlatten < VecIntoIter < Vec < ( K , V ) > > > ,
128
146
}
@@ -146,6 +164,9 @@ impl<K: IntKey, V> Iterator for IntoIter<K, V> {
146
164
147
165
// ***************** Drain Iter *********************
148
166
167
+ /// A draining iterator for [`IntMap`].
168
+ ///
169
+ /// This struct is created by [`IntMap::drain`].
149
170
#[ allow( clippy:: type_complexity) ]
150
171
pub struct Drain < ' a , K : IntKey , V > {
151
172
count : & ' a mut usize ,
0 commit comments