Skip to content

Commit 09523fc

Browse files
committed
Made Float inherit assign operators
1 parent 72a975d commit 09523fc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ pub trait Float:
1212
+ Trig
1313
+ PartialEq
1414
+ PartialOrd
15-
+ Add<Self, Output = Self>
16-
+ Mul<Self, Output = Self>
17-
+ Sub<Self, Output = Self>
18-
+ Div<Self, Output = Self>
19-
+ Rem<Self, Output = Self>
15+
+ Add<Self, Output = Self> + AddAssign<Self>
16+
+ Mul<Self, Output = Self> + MulAssign<Self>
17+
+ Sub<Self, Output = Self> + SubAssign<Self>
18+
+ Div<Self, Output = Self> + DivAssign<Self>
19+
+ Rem<Self, Output = Self> + RemAssign<Self>
2020
+ Neg<Output = Self>
2121
+ Trig {}
2222

@@ -28,11 +28,11 @@ impl<T> Float for T where
2828
+ Trig
2929
+ PartialEq
3030
+ PartialOrd
31-
+ Add<T, Output = T>
32-
+ Mul<T, Output = T>
33-
+ Sub<T, Output = T>
34-
+ Div<T, Output = T>
35-
+ Rem<T, Output = T>
31+
+ Add<T, Output = T> + AddAssign<T>
32+
+ Mul<T, Output = T> + MulAssign<T>
33+
+ Sub<T, Output = T> + SubAssign<T>
34+
+ Div<T, Output = T> + DivAssign<T>
35+
+ Rem<T, Output = T> + RemAssign<T>
3636
+ Neg<Output = T>
3737
+ Trig {}
3838

0 commit comments

Comments
 (0)