File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,24 @@ use crate::size_hint;
13
13
/// See [`.multi_cartesian_product()`](crate::Itertools::multi_cartesian_product)
14
14
/// for more information.
15
15
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
16
- pub struct MultiProduct < I > ( Option < MultiProductInner < I > > )
16
+ pub struct MultiProduct < I > (
17
+ /// `None` once the iterator has ended.
18
+ Option < MultiProductInner < I > > ,
19
+ )
17
20
where
18
21
I : Iterator + Clone ,
19
22
I :: Item : Clone ;
20
23
21
24
#[ derive( Clone ) ]
25
+ /// Internals for `MultiProduct`.
22
26
struct MultiProductInner < I >
23
27
where
24
28
I : Iterator + Clone ,
25
29
I :: Item : Clone ,
26
30
{
31
+ /// Holds the iterators.
27
32
iters : Vec < MultiProductIter < I > > ,
33
+ /// It is `None` at the beginning then it holds the current item of each iterator.
28
34
cur : Option < Vec < I :: Item > > ,
29
35
}
30
36
You can’t perform that action at this time.
0 commit comments