diff -r e2c51c8e0b2e -r a4c1a2d0ac24 rust/vec2d/src/lib.rs --- a/rust/vec2d/src/lib.rs Thu Nov 08 00:00:58 2018 +0100 +++ b/rust/vec2d/src/lib.rs Thu Nov 08 07:15:22 2018 +0300 @@ -86,12 +86,12 @@ } #[inline] - pub fn rows(&self) -> impl Iterator { + pub fn rows(&self) -> impl DoubleEndedIterator { self.data.chunks(self.width()) } #[inline] - pub fn rows_mut(&mut self) -> impl Iterator { + pub fn rows_mut(&mut self) -> impl DoubleEndedIterator { let width = self.width(); self.data.chunks_mut(width) }