11use super :: task:: Task ;
22use super :: FuturesUnordered ;
3+ use core:: hash:: Hash ;
34use core:: marker:: PhantomData ;
45use core:: pin:: Pin ;
56use core:: ptr;
@@ -13,6 +14,19 @@ pub struct IterPinMut<'a, Fut> {
1314 pub ( super ) _marker : PhantomData < & ' a mut FuturesUnordered < Fut > > ,
1415}
1516
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+
1630/// Mutable iterator over all futures in the unordered set.
1731#[ derive( Debug ) ]
1832pub struct IterMut < ' a , Fut : Unpin > ( pub ( super ) IterPinMut < ' a , Fut > ) ;
@@ -26,6 +40,20 @@ pub struct IterPinRef<'a, Fut> {
2640 pub ( super ) _marker : PhantomData < & ' a FuturesUnordered < Fut > > ,
2741}
2842
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+
2957/// Immutable iterator over all the futures in the unordered set.
3058#[ derive( Debug ) ]
3159pub struct Iter < ' a , Fut : Unpin > ( pub ( super ) IterPinRef < ' a , Fut > ) ;
0 commit comments