From 0380661bd278283aaa3f86b56f125b09fca33110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 17 Apr 2016 19:26:18 +0200 Subject: [PATCH] Remove some restrictions for `NumVector`. This removes the following inheritances: * Mul * Div * Add * Sub * MulAssign * DivAssign * AddAssign * SubAssign They silently overrided: * Mul * Div * Add * Sub * MulAssign * DivAssign * AddAssign * SubAssign --- src/traits/structure.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/traits/structure.rs b/src/traits/structure.rs index a88d8c2b..4afc7031 100644 --- a/src/traits/structure.rs +++ b/src/traits/structure.rs @@ -227,19 +227,19 @@ pub trait IterableMut { */ /// Trait grouping most common operations on vectors. pub trait NumVector: Add + Sub + - Mul + Div + + // Mul + Div + - Add + Sub + - Mul + Div + + // Add + Sub + + Mul + Div + - AddAssign + SubAssign + - MulAssign + DivAssign + + AddAssign + SubAssign + + // MulAssign + DivAssign + - AddAssign + SubAssign + - MulAssign + DivAssign + + // AddAssign + SubAssign + + MulAssign + DivAssign + - Dimension + Index + - Zero + PartialEq + Dot + Axpy { + Dimension + Index + + Zero + PartialEq + Dot + Axpy { } /// Trait of vector with components implementing the `BaseFloat` trait.