forked from M-Labs/nalgebra
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:
parent
40c6675c30
commit
0380661bd2
@ -227,15 +227,15 @@ pub trait IterableMut<N> {
|
|||||||
*/
|
*/
|
||||||
/// Trait grouping most common operations on vectors.
|
/// Trait grouping most common operations on vectors.
|
||||||
pub trait NumVector<N>: Add<Self, Output = Self> + Sub<Self, Output = Self> +
|
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> +
|
Mul<N, Output = Self> + Div<N, Output = Self> +
|
||||||
|
|
||||||
AddAssign<Self> + SubAssign<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> +
|
MulAssign<N> + DivAssign<N> +
|
||||||
|
|
||||||
Dimension + Index<usize, Output = N> +
|
Dimension + Index<usize, Output = N> +
|
||||||
|
Loading…
Reference in New Issue
Block a user