orx_iterable/obj_safe/transformations/cloning_iterable.rs
1use crate::obj_safe::IterableObj;
2use crate::{transformations::CloningIterable, Iterable};
3use std::boxed::Box;
4
5impl<I> IterableObj for CloningIterable<I>
6where
7 I: Iterator + Clone,
8{
9 type Item = I::Item;
10
11 fn boxed_iter(&self) -> Box<dyn Iterator<Item = Self::Item> + '_> {
12 Box::new(<Self as Iterable>::iter(self))
13 }
14}