@@ -1218,44 +1218,43 @@ impl<A, S, D> ArrayBase<S, D> where S: Data<Elem=A>, D: Dimension
1218
1218
iterators:: new_outer_iter ( self . view ( ) )
1219
1219
}
1220
1220
1221
- /// Return an iterator that traverses over the `axis` dimension
1221
+ /// Return an iterator that traverses over the outermost dimension
1222
1222
/// and yields each subview.
1223
1223
///
1224
+ /// Iterator element is `ArrayViewMut<A, D::Smaller>` (read-write array view).
1225
+ pub fn outer_iter_mut ( & mut self ) -> OuterIterMut < A , D :: Smaller >
1226
+ where S : DataMut ,
1227
+ D : RemoveAxis ,
1228
+ {
1229
+ iterators:: new_outer_iter_mut ( self . view_mut ( ) )
1230
+ }
1231
+
1232
+ /// Return an iterator that traverses over `axis`
1233
+ /// and yields each subview along it.
1234
+ ///
1224
1235
/// For example, in a 2 × 2 × 3 array, with `axis` equal to 1,
1225
1236
/// the iterator element
1226
1237
/// is a 2 × 2 subview (and there are 3 in total).
1227
1238
///
1228
1239
/// Iterator element is `ArrayView<A, D::Smaller>` (read-only array view).
1229
1240
///
1230
- /// # Panics
1241
+ /// See [*Subviews*](#subviews) for full documentation.
1231
1242
///
1232
- /// If axis is out of bounds.
1243
+ /// **Panics** if ` axis` is out of bounds.
1233
1244
pub fn axis_iter ( & self , axis : usize ) -> OuterIter < A , D :: Smaller >
1234
1245
where D : RemoveAxis
1235
1246
{
1236
1247
iterators:: new_axis_iter ( self . view ( ) , axis)
1237
1248
}
1238
1249
1239
- /// Return an iterator that traverses over the outermost dimension
1240
- /// and yields each subview.
1241
- ///
1242
- /// Iterator element is `ArrayViewMut<A, D::Smaller>` (read-write array view).
1243
- pub fn outer_iter_mut ( & mut self ) -> OuterIterMut < A , D :: Smaller >
1244
- where S : DataMut ,
1245
- D : RemoveAxis ,
1246
- {
1247
- iterators:: new_outer_iter_mut ( self . view_mut ( ) )
1248
- }
1249
1250
1250
- /// Return an iterator that traverses over the `axis` dimension
1251
- /// and yields each mutable subview.
1251
+ /// Return an iterator that traverses over `axis`
1252
+ /// and yields each mutable subview along it .
1252
1253
///
1253
1254
/// Iterator element is `ArrayViewMut<A, D::Smaller>`
1254
1255
/// (read-write array view).
1255
1256
///
1256
- /// # Panics
1257
- ///
1258
- /// If axis is out of bounds.
1257
+ /// **Panics** if `axis` is out of bounds.
1259
1258
pub fn axis_iter_mut ( & mut self , axis : usize ) -> OuterIterMut < A , D :: Smaller >
1260
1259
where S : DataMut ,
1261
1260
D : RemoveAxis ,
0 commit comments