Skip to content

Commit 09a4437

Browse files
jturner314bluss
authored andcommitted
Rename DimAdd::Out to DimAdd::Output
1 parent 3bfe3b9 commit 09a4437

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/dimension/dimension_trait.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

src/dimension/ops.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@ use crate::imp_prelude::*;
33
/// Adds the two dimensions at compile time.
44
pub trait DimAdd<D: Dimension> {
55
/// The sum of the two dimensions.
6-
type Out: Dimension;
6+
type Output: Dimension;
77
}
88

99
macro_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

1717
macro_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

3030
impl<D: Dimension> DimAdd<D> for Ix0 {
31-
type Out = D;
31+
type Output = D;
3232
}
3333

3434
impl_dimadd_const_out_const!(1, 0);
@@ -86,5 +86,5 @@ impl_dimadd_const_out_dyn!(6, 6);
8686
impl_dimadd_const_out_dyn!(6, IxDyn);
8787

8888
impl<D: Dimension> DimAdd<D> for IxDyn {
89-
type Out = IxDyn;
89+
type Output = IxDyn;
9090
}

src/slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)