1
1
use super :: task:: Task ;
2
2
use super :: FuturesUnordered ;
3
+ use core:: hash:: Hash ;
3
4
use core:: marker:: PhantomData ;
4
5
use core:: pin:: Pin ;
5
6
use core:: ptr;
@@ -13,6 +14,19 @@ pub struct IterPinMut<'a, Fut> {
13
14
pub ( super ) _marker : PhantomData < & ' a mut FuturesUnordered < Fut > > ,
14
15
}
15
16
17
+ /// Mutable iterator over all keys and futures in the map.
18
+ // #[derive(Debug)]
19
+ // pub struct MapIterPinMut<'a, K, Fut> {
20
+ // pub(super) inner: IterMut<'a, K, Fut>,
21
+ // // pub(super) task: *const Task<Fut>,
22
+ // // pub(super) len: usize,
23
+ // // pub(super) _marker: PhantomData<&'a mut FuturesUnordered<Fut>>,
24
+ // }
25
+
26
+ /// Immutable iterator over all the keys and futures in the map.
27
+ // #[derive(Debug)]
28
+ // pub struct IterMap<'a, K: Hash + Eq, Fut: Unpin>(pub(super) IterPinRef<'a, K, Fut>);
29
+
16
30
/// Mutable iterator over all futures in the unordered set.
17
31
#[ derive( Debug ) ]
18
32
pub struct IterMut < ' a , Fut : Unpin > ( pub ( super ) IterPinMut < ' a , Fut > ) ;
@@ -26,6 +40,20 @@ pub struct IterPinRef<'a, Fut> {
26
40
pub ( super ) _marker : PhantomData < & ' a FuturesUnordered < Fut > > ,
27
41
}
28
42
43
+ /// Immutable iterator over all keys and futures in the map.
44
+ // #[derive(Debug)]
45
+ // pub struct MapIterPinRef<'a, K, Fut> {
46
+ // inner: HashMapIter<'a, K, *const Task<Fut>>,
47
+ // // pub(super) task: *const Task<Fut>,
48
+ // // pub(super) len: usize,
49
+ // // pub(super) pending_next_all: *mut Task<Fut>,
50
+ // // pub(super) _marker: PhantomData<&'a FuturesUnordered<Fut>>,
51
+ // }
52
+
53
+ /// Immutable iterator over all keys and futures in the map.
54
+ // #[derive(Debug)]
55
+ // pub struct MapIter<'a, K, Fut>(pub(super) MapIterPinRef<'a, K, Fut>);
56
+
29
57
/// Immutable iterator over all the futures in the unordered set.
30
58
#[ derive( Debug ) ]
31
59
pub struct Iter < ' a , Fut : Unpin > ( pub ( super ) IterPinRef < ' a , Fut > ) ;
0 commit comments