raphtory_api/
iter.rs

1pub type BoxedIter<T> = Box<dyn Iterator<Item = T> + Send>;
2pub type BoxedLIter<'a, T> = Box<dyn Iterator<Item = T> + Send + 'a>;
3
4pub trait IntoDynBoxed<'a, T> {
5    fn into_dyn_boxed(self) -> BoxedLIter<'a, T>;
6}
7
8impl<'a, T, I: Iterator<Item = T> + Send + 'a> IntoDynBoxed<'a, T> for I {
9    fn into_dyn_boxed(self) -> BoxedLIter<'a, T> {
10        Box::new(self)
11    }
12}