rust/vec2d/src/lib.rs
changeset 14170 a4c1a2d0ac24
parent 14160 c24a76f131d6
child 14207 bb2f301d4fe0
--- 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<Item = &[T]> {
+    pub fn rows(&self) -> impl DoubleEndedIterator<Item = &[T]> {
         self.data.chunks(self.width())
     }
 
     #[inline]
-    pub fn rows_mut(&mut self) -> impl Iterator<Item = &mut [T]> {
+    pub fn rows_mut(&mut self) -> impl DoubleEndedIterator<Item = &mut [T]> {
         let width = self.width();
         self.data.chunks_mut(width)
     }