From 64d6a8c70b8d61a22136fd10f0c61ec349315694 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 12 Oct 2024 17:10:12 +0200 Subject: Refactor 1: Numeric Traits --- libpsi-core/src/maths/numeric_int.rs | 44 ------------------------------------ 1 file changed, 44 deletions(-) delete mode 100644 libpsi-core/src/maths/numeric_int.rs (limited to 'libpsi-core/src/maths/numeric_int.rs') 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 - } -} -- cgit v1.3