From 62038c7e002e00a7156c74da7eea7dba8a595c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 2 Sep 2024 17:50:26 +0200 Subject: [PATCH] Implement Clone on the bitmap::Iter type --- roaring/src/bitmap/iter.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/roaring/src/bitmap/iter.rs b/roaring/src/bitmap/iter.rs index 59463a21..f7fe68e6 100644 --- a/roaring/src/bitmap/iter.rs +++ b/roaring/src/bitmap/iter.rs @@ -9,6 +9,7 @@ use crate::{NonSortedIntegers, RoaringBitmap}; use alloc::vec::Vec; /// An iterator for `RoaringBitmap`. +#[derive(Clone)] pub struct Iter<'a> { inner: iter::Flatten>, size_hint: u64,