@@ -13,7 +13,7 @@ use std::ops::{Add, Sub, Mul, AddAssign, SubAssign, MulAssign};
1313
1414use itertools:: { enumerate, izip, zip} ;
1515
16- use crate :: { Ix , Ixs , Ix0 , Ix1 , Ix2 , Ix3 , Ix4 , Ix5 , Ix6 , IxDyn , Dim , SliceOrIndex , IxDynImpl } ;
16+ use crate :: { Ix , Ixs , Ix0 , Ix1 , Ix2 , Ix3 , Ix4 , Ix5 , Ix6 , IxDyn , Dim , AxisSliceInfo , IxDynImpl } ;
1717use crate :: IntoDimension ;
1818use crate :: RemoveAxis ;
1919use crate :: { ArrayView1 , ArrayViewMut1 } ;
@@ -52,14 +52,14 @@ pub trait Dimension : Clone + Eq + Debug + Send + Sync + Default +
5252 /// size, which you pass by reference. For the dynamic dimension it is
5353 /// a slice.
5454 ///
55- /// - For `Ix1`: `[SliceOrIndex ; 1]`
56- /// - For `Ix2`: `[SliceOrIndex ; 2]`
55+ /// - For `Ix1`: `[AxisSliceInfo ; 1]`
56+ /// - For `Ix2`: `[AxisSliceInfo ; 2]`
5757 /// - and so on..
58- /// - For `IxDyn`: `[SliceOrIndex ]`
58+ /// - For `IxDyn`: `[AxisSliceInfo ]`
5959 ///
6060 /// The easiest way to create a `&SliceInfo<SliceArg, Do>` is using the
6161 /// [`s![]`](macro.s!.html) macro.
62- type SliceArg : ?Sized + AsRef < [ SliceOrIndex ] > ;
62+ type SliceArg : ?Sized + AsRef < [ AxisSliceInfo ] > ;
6363 /// Pattern matching friendly form of the dimension value.
6464 ///
6565 /// - For `Ix1`: `usize`,
@@ -364,7 +364,7 @@ macro_rules! impl_insert_axis_array(
364364
365365impl Dimension for Dim < [ Ix ; 0 ] > {
366366 const NDIM : Option < usize > = Some ( 0 ) ;
367- type SliceArg = [ SliceOrIndex ; 0 ] ;
367+ type SliceArg = [ AxisSliceInfo ; 0 ] ;
368368 type Pattern = ( ) ;
369369 type Smaller = Self ;
370370 type Larger = Ix1 ;
@@ -401,7 +401,7 @@ impl Dimension for Dim<[Ix; 0]> {
401401
402402impl Dimension for Dim < [ Ix ; 1 ] > {
403403 const NDIM : Option < usize > = Some ( 1 ) ;
404- type SliceArg = [ SliceOrIndex ; 1 ] ;
404+ type SliceArg = [ AxisSliceInfo ; 1 ] ;
405405 type Pattern = Ix ;
406406 type Smaller = Ix0 ;
407407 type Larger = Ix2 ;
@@ -499,7 +499,7 @@ impl Dimension for Dim<[Ix; 1]> {
499499
500500impl Dimension for Dim < [ Ix ; 2 ] > {
501501 const NDIM : Option < usize > = Some ( 2 ) ;
502- type SliceArg = [ SliceOrIndex ; 2 ] ;
502+ type SliceArg = [ AxisSliceInfo ; 2 ] ;
503503 type Pattern = ( Ix , Ix ) ;
504504 type Smaller = Ix1 ;
505505 type Larger = Ix3 ;
@@ -645,7 +645,7 @@ impl Dimension for Dim<[Ix; 2]> {
645645
646646impl Dimension for Dim < [ Ix ; 3 ] > {
647647 const NDIM : Option < usize > = Some ( 3 ) ;
648- type SliceArg = [ SliceOrIndex ; 3 ] ;
648+ type SliceArg = [ AxisSliceInfo ; 3 ] ;
649649 type Pattern = ( Ix , Ix , Ix ) ;
650650 type Smaller = Ix2 ;
651651 type Larger = Ix4 ;
@@ -763,7 +763,7 @@ macro_rules! large_dim {
763763 ( $n: expr, $name: ident, $pattern: ty, $larger: ty, { $( $insert_axis: tt) * } ) => (
764764 impl Dimension for Dim <[ Ix ; $n] > {
765765 const NDIM : Option <usize > = Some ( $n) ;
766- type SliceArg = [ SliceOrIndex ; $n] ;
766+ type SliceArg = [ AxisSliceInfo ; $n] ;
767767 type Pattern = $pattern;
768768 type Smaller = Dim <[ Ix ; $n - 1 ] >;
769769 type Larger = $larger;
@@ -815,7 +815,7 @@ large_dim!(6, Ix6, (Ix, Ix, Ix, Ix, Ix, Ix), IxDyn, {
815815impl Dimension for IxDyn
816816{
817817 const NDIM : Option < usize > = None ;
818- type SliceArg = [ SliceOrIndex ] ;
818+ type SliceArg = [ AxisSliceInfo ] ;
819819 type Pattern = Self ;
820820 type Smaller = Self ;
821821 type Larger = Self ;
0 commit comments