diff -r ac8a3f377197 -r 669cdf697f16 rust/vec2d/src/lib.rs --- a/rust/vec2d/src/lib.rs Mon Feb 03 15:03:26 2025 +0100 +++ b/rust/vec2d/src/lib.rs Mon Feb 03 15:25:28 2025 +0100 @@ -1,7 +1,7 @@ use integral_geometry::Size; use std::{ ops::{Index, IndexMut}, - slice::SliceIndex, + slice::{ChunksExact, ChunksExactMut, SliceIndex}, }; #[derive(Debug, Clone)] @@ -114,12 +114,12 @@ } #[inline] - pub fn rows(&self) -> impl DoubleEndedIterator { + pub fn rows(&self) -> ChunksExact<'_, T> { self.data.chunks_exact(self.width()) } #[inline] - pub fn rows_mut(&mut self) -> impl DoubleEndedIterator { + pub fn rows_mut(&mut self) -> ChunksExactMut<'_, T> { let width = self.width(); self.data.chunks_exact_mut(width) }