File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use crate::bitmap::IntoIter as IntoIter32;
77use crate :: bitmap:: Iter as Iter32 ;
88use crate :: { NonSortedIntegers , RoaringBitmap , RoaringTreemap } ;
99
10+ #[ derive( Clone ) ]
1011struct To64Iter < ' a > {
1112 hi : u32 ,
1213 inner : Iter32 < ' a > ,
@@ -61,6 +62,7 @@ fn to64iter(t: (u32, &RoaringBitmap)) -> To64Iter<'_> {
6162 To64Iter { hi : t. 0 , inner : t. 1 . iter ( ) }
6263}
6364
65+ #[ derive( Clone ) ]
6466struct To64IntoIter {
6567 hi : u32 ,
6668 inner : IntoIter32 ,
@@ -108,6 +110,7 @@ type InnerIntoIter = iter::FlatMap<
108110> ;
109111
110112/// An iterator for `RoaringTreemap`.
113+ #[ derive( Clone ) ]
111114pub struct Iter < ' a > {
112115 outer : BitmapIter < ' a > ,
113116 front : Option < To64Iter < ' a > > ,
@@ -524,6 +527,7 @@ impl RoaringTreemap {
524527}
525528
526529/// An iterator of `RoaringBitmap`s for `RoaringTreemap`.
530+ #[ derive( Clone ) ]
527531pub struct BitmapIter < ' a > {
528532 treemap : & ' a BTreeMap < u32 , RoaringBitmap > ,
529533 range : btree_map:: Range < ' a , u32 , RoaringBitmap > ,
You can’t perform that action at this time.
0 commit comments