Skip to content

Commit 0948409

Browse files
committed
Implement Clone for LanesIter
1 parent e8a413a commit 0948409

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/iterators/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,18 @@ pub struct LanesIter<'a, A: 'a, D> {
515515
life: PhantomData<&'a A>,
516516
}
517517

518+
clone_bounds!(
519+
['a, A, D: Clone]
520+
LanesIter['a, A, D] {
521+
@copy {
522+
inner_len,
523+
inner_stride,
524+
life,
525+
}
526+
iter,
527+
}
528+
);
529+
518530
impl<'a, A, D> Iterator for LanesIter<'a, A, D>
519531
where D: Dimension
520532
{

0 commit comments

Comments
 (0)