@@ -19,7 +19,7 @@ use crate::Axis;
1919use crate :: IntoDimension ;
2020use crate :: RemoveAxis ;
2121use crate :: { ArrayView1 , ArrayViewMut1 } ;
22- use crate :: { Dim , Ix , Ix0 , Ix1 , Ix2 , Ix3 , Ix4 , Ix5 , Ix6 , IxDyn , IxDynImpl , Ixs , SliceOrIndex } ;
22+ use crate :: { AxisSliceInfo , Dim , Ix , Ix0 , Ix1 , Ix2 , Ix3 , Ix4 , Ix5 , Ix6 , IxDyn , IxDynImpl , Ixs } ;
2323
2424/// Array shape and index trait.
2525///
@@ -58,14 +58,14 @@ pub trait Dimension:
5858 /// size, which you pass by reference. For the dynamic dimension it is
5959 /// a slice.
6060 ///
61- /// - For `Ix1`: `[SliceOrIndex ; 1]`
62- /// - For `Ix2`: `[SliceOrIndex ; 2]`
61+ /// - For `Ix1`: `[AxisSliceInfo ; 1]`
62+ /// - For `Ix2`: `[AxisSliceInfo ; 2]`
6363 /// - and so on..
64- /// - For `IxDyn`: `[SliceOrIndex ]`
64+ /// - For `IxDyn`: `[AxisSliceInfo ]`
6565 ///
6666 /// The easiest way to create a `&SliceInfo<SliceArg, Do>` is using the
6767 /// [`s![]`](macro.s!.html) macro.
68- type SliceArg : ?Sized + AsRef < [ SliceOrIndex ] > ;
68+ type SliceArg : ?Sized + AsRef < [ AxisSliceInfo ] > ;
6969 /// Pattern matching friendly form of the dimension value.
7070 ///
7171 /// - For `Ix1`: `usize`,
@@ -394,7 +394,7 @@ macro_rules! impl_insert_axis_array(
394394
395395impl Dimension for Dim < [ Ix ; 0 ] > {
396396 const NDIM : Option < usize > = Some ( 0 ) ;
397- type SliceArg = [ SliceOrIndex ; 0 ] ;
397+ type SliceArg = [ AxisSliceInfo ; 0 ] ;
398398 type Pattern = ( ) ;
399399 type Smaller = Self ;
400400 type Larger = Ix1 ;
@@ -438,7 +438,7 @@ impl Dimension for Dim<[Ix; 0]> {
438438
439439impl Dimension for Dim < [ Ix ; 1 ] > {
440440 const NDIM : Option < usize > = Some ( 1 ) ;
441- type SliceArg = [ SliceOrIndex ; 1 ] ;
441+ type SliceArg = [ AxisSliceInfo ; 1 ] ;
442442 type Pattern = Ix ;
443443 type Smaller = Ix0 ;
444444 type Larger = Ix2 ;
@@ -554,7 +554,7 @@ impl Dimension for Dim<[Ix; 1]> {
554554
555555impl Dimension for Dim < [ Ix ; 2 ] > {
556556 const NDIM : Option < usize > = Some ( 2 ) ;
557- type SliceArg = [ SliceOrIndex ; 2 ] ;
557+ type SliceArg = [ AxisSliceInfo ; 2 ] ;
558558 type Pattern = ( Ix , Ix ) ;
559559 type Smaller = Ix1 ;
560560 type Larger = Ix3 ;
@@ -711,7 +711,7 @@ impl Dimension for Dim<[Ix; 2]> {
711711
712712impl Dimension for Dim < [ Ix ; 3 ] > {
713713 const NDIM : Option < usize > = Some ( 3 ) ;
714- type SliceArg = [ SliceOrIndex ; 3 ] ;
714+ type SliceArg = [ AxisSliceInfo ; 3 ] ;
715715 type Pattern = ( Ix , Ix , Ix ) ;
716716 type Smaller = Ix2 ;
717717 type Larger = Ix4 ;
@@ -834,7 +834,7 @@ macro_rules! large_dim {
834834 ( $n: expr, $name: ident, $pattern: ty, $larger: ty, { $( $insert_axis: tt) * } ) => (
835835 impl Dimension for Dim <[ Ix ; $n] > {
836836 const NDIM : Option <usize > = Some ( $n) ;
837- type SliceArg = [ SliceOrIndex ; $n] ;
837+ type SliceArg = [ AxisSliceInfo ; $n] ;
838838 type Pattern = $pattern;
839839 type Smaller = Dim <[ Ix ; $n - 1 ] >;
840840 type Larger = $larger;
@@ -885,7 +885,7 @@ large_dim!(6, Ix6, (Ix, Ix, Ix, Ix, Ix, Ix), IxDyn, {
885885/// and memory wasteful, but it allows an arbitrary and dynamic number of axes.
886886impl Dimension for IxDyn {
887887 const NDIM : Option < usize > = None ;
888- type SliceArg = [ SliceOrIndex ] ;
888+ type SliceArg = [ AxisSliceInfo ] ;
889889 type Pattern = Self ;
890890 type Smaller = Self ;
891891 type Larger = Self ;
0 commit comments