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:
55
55
+ DimAdd < Self >
56
56
+ DimAdd < <Self as Dimension >:: Smaller >
57
57
+ 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 >
61
61
{
62
62
/// For fixed-size dimension representations (e.g. `Ix2`), this should be
63
63
/// `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::*;
3
3
/// Adds the two dimensions at compile time.
4
4
pub trait DimAdd < D : Dimension > {
5
5
/// The sum of the two dimensions.
6
- type Out : Dimension ;
6
+ type Output : Dimension ;
7
7
}
8
8
9
9
macro_rules! impl_dimadd_const_out_const {
10
10
( $lhs: expr, $rhs: expr) => {
11
11
impl DimAdd <Dim <[ usize ; $rhs] >> for Dim <[ usize ; $lhs] > {
12
- type Out = Dim <[ usize ; $lhs + $rhs] >;
12
+ type Output = Dim <[ usize ; $lhs + $rhs] >;
13
13
}
14
14
} ;
15
15
}
16
16
17
17
macro_rules! impl_dimadd_const_out_dyn {
18
18
( $lhs: expr, IxDyn ) => {
19
19
impl DimAdd <IxDyn > for Dim <[ usize ; $lhs] > {
20
- type Out = IxDyn ;
20
+ type Output = IxDyn ;
21
21
}
22
22
} ;
23
23
( $lhs: expr, $rhs: expr) => {
24
24
impl DimAdd <Dim <[ usize ; $rhs] >> for Dim <[ usize ; $lhs] > {
25
- type Out = IxDyn ;
25
+ type Output = IxDyn ;
26
26
}
27
27
} ;
28
28
}
29
29
30
30
impl < D : Dimension > DimAdd < D > for Ix0 {
31
- type Out = D ;
31
+ type Output = D ;
32
32
}
33
33
34
34
impl_dimadd_const_out_const ! ( 1 , 0 ) ;
@@ -86,5 +86,5 @@ impl_dimadd_const_out_dyn!(6, 6);
86
86
impl_dimadd_const_out_dyn ! ( 6 , IxDyn ) ;
87
87
88
88
impl < D : Dimension > DimAdd < D > for IxDyn {
89
- type Out = IxDyn ;
89
+ type Output = IxDyn ;
90
90
}
Original file line number Diff line number Diff line change @@ -661,14 +661,14 @@ pub trait SliceArg {
661
661
/// Number of dimensions that this slicing argument produces in the output array.
662
662
type OutDim : Dimension ;
663
663
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 >
665
665
where
666
666
D : Dimension + DimAdd < Self :: InDim > ,
667
667
{
668
668
PhantomData
669
669
}
670
670
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 >
672
672
where
673
673
D : Dimension + DimAdd < Self :: OutDim > ,
674
674
{
You can’t perform that action at this time.
0 commit comments