File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ pub trait Dimension:
5555 + DimAdd < Self >
5656 + DimAdd < <Self as Dimension >:: Smaller >
5757 + DimAdd < <Self as Dimension >:: Larger >
58- + DimAdd < Ix0 , Out = Self >
59- + DimAdd < Ix1 , Out = <Self as Dimension >:: Larger >
60- + DimAdd < IxDyn , Out = IxDyn >
58+ + DimAdd < Ix0 , Output = Self >
59+ + DimAdd < Ix1 , Output = <Self as Dimension >:: Larger >
60+ + DimAdd < IxDyn , Output = IxDyn >
6161{
6262 /// For fixed-size dimension representations (e.g. `Ix2`), this should be
6363 /// `Some(ndim)`, and for variable-size dimension representations (e.g.
Original file line number Diff line number Diff line change @@ -3,32 +3,32 @@ use crate::imp_prelude::*;
33/// Adds the two dimensions at compile time.
44pub trait DimAdd < D : Dimension > {
55 /// The sum of the two dimensions.
6- type Out : Dimension ;
6+ type Output : Dimension ;
77}
88
99macro_rules! impl_dimadd_const_out_const {
1010 ( $lhs: expr, $rhs: expr) => {
1111 impl DimAdd <Dim <[ usize ; $rhs] >> for Dim <[ usize ; $lhs] > {
12- type Out = Dim <[ usize ; $lhs + $rhs] >;
12+ type Output = Dim <[ usize ; $lhs + $rhs] >;
1313 }
1414 } ;
1515}
1616
1717macro_rules! impl_dimadd_const_out_dyn {
1818 ( $lhs: expr, IxDyn ) => {
1919 impl DimAdd <IxDyn > for Dim <[ usize ; $lhs] > {
20- type Out = IxDyn ;
20+ type Output = IxDyn ;
2121 }
2222 } ;
2323 ( $lhs: expr, $rhs: expr) => {
2424 impl DimAdd <Dim <[ usize ; $rhs] >> for Dim <[ usize ; $lhs] > {
25- type Out = IxDyn ;
25+ type Output = IxDyn ;
2626 }
2727 } ;
2828}
2929
3030impl < D : Dimension > DimAdd < D > for Ix0 {
31- type Out = D ;
31+ type Output = D ;
3232}
3333
3434impl_dimadd_const_out_const ! ( 1 , 0 ) ;
@@ -86,5 +86,5 @@ impl_dimadd_const_out_dyn!(6, 6);
8686impl_dimadd_const_out_dyn ! ( 6 , IxDyn ) ;
8787
8888impl < D : Dimension > DimAdd < D > for IxDyn {
89- type Out = IxDyn ;
89+ type Output = IxDyn ;
9090}
Original file line number Diff line number Diff line change @@ -661,14 +661,14 @@ pub trait SliceArg {
661661 /// Number of dimensions that this slicing argument produces in the output array.
662662 type OutDim : Dimension ;
663663
664- fn next_in_dim < D > ( & self , _: PhantomData < D > ) -> PhantomData < <D as DimAdd < Self :: InDim > >:: Out >
664+ fn next_in_dim < D > ( & self , _: PhantomData < D > ) -> PhantomData < <D as DimAdd < Self :: InDim > >:: Output >
665665 where
666666 D : Dimension + DimAdd < Self :: InDim > ,
667667 {
668668 PhantomData
669669 }
670670
671- fn next_out_dim < D > ( & self , _: PhantomData < D > ) -> PhantomData < <D as DimAdd < Self :: OutDim > >:: Out >
671+ fn next_out_dim < D > ( & self , _: PhantomData < D > ) -> PhantomData < <D as DimAdd < Self :: OutDim > >:: Output >
672672 where
673673 D : Dimension + DimAdd < Self :: OutDim > ,
674674 {
You can’t perform that action at this time.
0 commit comments