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_int.rs | |
| parent | 483e9e6ce9fbb1440992e916ec743ce0eff0ab5a (diff) | |
Refactor 1: Numeric Traits
Diffstat (limited to 'libpsi-core/src/maths/numeric_int.rs')
| -rw-r--r-- | libpsi-core/src/maths/numeric_int.rs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/libpsi-core/src/maths/numeric_int.rs b/libpsi-core/src/maths/numeric_int.rs deleted file mode 100644 index a9ecec7..0000000 --- a/libpsi-core/src/maths/numeric_int.rs +++ /dev/null @@ -1,44 +0,0 @@ -use super::{Integer, Numeric}; - -impl Integer for i64 {} -impl Integer for i32 {} - -impl Numeric for i32 { - fn zero() -> Self { - 0 - } - - fn one() -> Self { - 1 - } -} - -impl Numeric for i64 { - fn zero() -> Self { - 0 - } - - fn one() -> Self { - 1 - } -} - -impl Numeric for f32 { - fn zero() -> Self { - 0.0 - } - - fn one() -> Self { - 1.0 - } -} - -impl Numeric for f64 { - fn zero() -> Self { - 0.0 - } - - fn one() -> Self { - 1.0 - } -} |
