diff --git a/src/lib.rs b/src/lib.rs index f46f9ec..b06284c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1167,7 +1167,9 @@ impl Array2D { /// # } /// /// [`usize`]: https://doc.rust-lang.org/std/primitive.usize.html - pub fn enumerate_row_major(&self) -> impl DoubleEndedIterator + Clone { + pub fn enumerate_row_major( + &self, + ) -> impl DoubleEndedIterator + Clone { self.indices_row_major().map(move |i| (i, &self[i])) } @@ -1195,7 +1197,9 @@ impl Array2D { /// # } /// /// [`usize`]: https://doc.rust-lang.org/std/primitive.usize.html - pub fn enumerate_column_major(&self) -> impl DoubleEndedIterator + Clone { + pub fn enumerate_column_major( + &self, + ) -> impl DoubleEndedIterator + Clone { self.indices_column_major().map(move |i| (i, &self[i])) }