diff options
| author | hachem <im@hachem.wtf> | 2024-10-12 17:10:12 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2024-10-12 17:10:12 +0200 |
| commit | 64d6a8c70b8d61a22136fd10f0c61ec349315694 (patch) | |
| tree | 7eace7d8b31ea4c44617cf7f599f385aa69dc26a /libpsi-core/src/maths/numeric_traits.rs | |
| parent | 483e9e6ce9fbb1440992e916ec743ce0eff0ab5a (diff) | |
Refactor 1: Numeric Traits
Diffstat (limited to 'libpsi-core/src/maths/numeric_traits.rs')
| -rw-r--r-- | libpsi-core/src/maths/numeric_traits.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libpsi-core/src/maths/numeric_traits.rs b/libpsi-core/src/maths/numeric_traits.rs deleted file mode 100644 index dd7fdec..0000000 --- a/libpsi-core/src/maths/numeric_traits.rs +++ /dev/null @@ -1,24 +0,0 @@ -use core::ops; - -pub trait Numeric: - Copy - + PartialOrd - + ops::Add<Output = Self> - + ops::Mul<Output = Self> - + ops::Sub<Output = Self> - + ops::Div<Output = Self> - + ops::Neg<Output = Self> - + ops::AddAssign - + ops::SubAssign - + ops::MulAssign - + ops::DivAssign -{ - fn zero() -> Self; - fn one() -> Self; -} - -pub trait Integer: Numeric {} -pub trait Float: Numeric { - fn sqrt(self) -> Self; - fn atan2(y: Self, x: Self) -> Self; -} |
