--- 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)
}