@@ -32,7 +32,7 @@ use crate::iter::{
3232 AxisChunksIter , AxisChunksIterMut , AxisIter , AxisIterMut , ExactChunks , ExactChunksMut ,
3333 IndexedIter , IndexedIterMut , Iter , IterMut , Lanes , LanesMut , Windows ,
3434} ;
35- use crate :: slice:: { CanSlice , MultiSlice } ;
35+ use crate :: slice:: { MultiSlice , SliceArg } ;
3636use crate :: stacking:: concatenate;
3737use crate :: { AxisSliceInfo , NdIndex , Slice } ;
3838
@@ -334,16 +334,13 @@ where
334334 /// Return a sliced view of the array.
335335 ///
336336 /// See [*Slicing*](#slicing) for full documentation.
337- /// See also [`SliceInfo`] and [`D::SliceArg`].
338- ///
339- /// [`SliceInfo`]: struct.SliceInfo.html
340- /// [`D::SliceArg`]: trait.Dimension.html#associatedtype.SliceArg
337+ /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo).
341338 ///
342339 /// **Panics** if an index is out of bounds or step size is zero.<br>
343340 /// (**Panics** if `D` is `IxDyn` and `info` does not match the number of array axes.)
344341 pub fn slice < I > ( & self , info : & I ) -> ArrayView < ' _ , A , I :: OutDim >
345342 where
346- I : CanSlice < D > + ?Sized ,
343+ I : SliceArg < D > + ?Sized ,
347344 S : Data ,
348345 {
349346 self . view ( ) . slice_move ( info)
@@ -352,16 +349,13 @@ where
352349 /// Return a sliced read-write view of the array.
353350 ///
354351 /// See [*Slicing*](#slicing) for full documentation.
355- /// See also [`SliceInfo`] and [`D::SliceArg`].
356- ///
357- /// [`SliceInfo`]: struct.SliceInfo.html
358- /// [`D::SliceArg`]: trait.Dimension.html#associatedtype.SliceArg
352+ /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo).
359353 ///
360354 /// **Panics** if an index is out of bounds or step size is zero.<br>
361355 /// (**Panics** if `D` is `IxDyn` and `info` does not match the number of array axes.)
362356 pub fn slice_mut < I > ( & mut self , info : & I ) -> ArrayViewMut < ' _ , A , I :: OutDim >
363357 where
364- I : CanSlice < D > + ?Sized ,
358+ I : SliceArg < D > + ?Sized ,
365359 S : DataMut ,
366360 {
367361 self . view_mut ( ) . slice_move ( info)
@@ -370,10 +364,7 @@ where
370364 /// Return multiple disjoint, sliced, mutable views of the array.
371365 ///
372366 /// See [*Slicing*](#slicing) for full documentation.
373- /// See also [`SliceInfo`] and [`D::SliceArg`].
374- ///
375- /// [`SliceInfo`]: struct.SliceInfo.html
376- /// [`D::SliceArg`]: trait.Dimension.html#associatedtype.SliceArg
367+ /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo).
377368 ///
378369 /// **Panics** if any of the following occur:
379370 ///
@@ -403,16 +394,13 @@ where
403394 /// Slice the array, possibly changing the number of dimensions.
404395 ///
405396 /// See [*Slicing*](#slicing) for full documentation.
406- /// See also [`SliceInfo`] and [`D::SliceArg`].
407- ///
408- /// [`SliceInfo`]: struct.SliceInfo.html
409- /// [`D::SliceArg`]: trait.Dimension.html#associatedtype.SliceArg
397+ /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo).
410398 ///
411399 /// **Panics** if an index is out of bounds or step size is zero.<br>
412400 /// (**Panics** if `D` is `IxDyn` and `info` does not match the number of array axes.)
413401 pub fn slice_move < I > ( mut self , info : & I ) -> ArrayBase < S , I :: OutDim >
414402 where
415- I : CanSlice < D > + ?Sized ,
403+ I : SliceArg < D > + ?Sized ,
416404 {
417405 assert_eq ! (
418406 info. in_ndim( ) ,
@@ -462,6 +450,7 @@ where
462450 /// Slice the array in place without changing the number of dimensions.
463451 ///
464452 /// See [*Slicing*](#slicing) for full documentation.
453+ /// See also [`s!`], [`SliceArg`], and [`SliceInfo`](crate::SliceInfo).
465454 ///
466455 /// **Panics** in the following cases:
467456 ///
@@ -472,7 +461,7 @@ where
472461 /// - if `D` is `IxDyn` and `info` does not match the number of array axes
473462 pub fn slice_collapse < I > ( & mut self , info : & I )
474463 where
475- I : CanSlice < D > + ?Sized ,
464+ I : SliceArg < D > + ?Sized ,
476465 {
477466 assert_eq ! (
478467 info. in_ndim( ) ,
0 commit comments