Remove some restrictions for NumVector.

This removes the following inheritances:
        * Mul<Self, Output = Self>
        * Div<Self, Output = Self>
        * Add<N, Output = Self>
        * Sub<N, Output = Self>
        * MulAssign<Self>
        * DivAssign<Self>
        * AddAssign<N>
        * SubAssign<N>

They silently overrided:
        * Mul<N, Output = Self>
        * Div<N, Output = Self>
        * Add<Self, Output = Self>
        * Sub<Self, Output = Self>
        * MulAssign<N>
        * DivAssign<N>
        * AddAssign<Self>
        * SubAssign<Self>
This commit is contained in:
Sébastien Crozet 2016-04-17 19:26:18 +02:00
parent 40c6675c30
commit 0380661bd2

View File

@ -227,15 +227,15 @@ pub trait IterableMut<N> {
*/
/// Trait grouping most common operations on vectors.
pub trait NumVector<N>: Add<Self, Output = Self> + Sub<Self, Output = Self> +
Mul<Self, Output = Self> + Div<Self, Output = Self> +
// Mul<Self, Output = Self> + Div<Self, Output = Self> +
Add<N, Output = Self> + Sub<N, Output = Self> +
// Add<N, Output = Self> + Sub<N, Output = Self> +
Mul<N, Output = Self> + Div<N, Output = Self> +
AddAssign<Self> + SubAssign<Self> +
MulAssign<Self> + DivAssign<Self> +
// MulAssign<Self> + DivAssign<Self> +
AddAssign<N> + SubAssign<N> +
// AddAssign<N> + SubAssign<N> +
MulAssign<N> + DivAssign<N> +
Dimension + Index<usize, Output = N> +