From a097e3945f06ab891b71058555bcc9d076678d82 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 27 Aug 2024 13:28:45 -0700 Subject: [PATCH] more traits --- fixed_wide_traits/src/wide.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/fixed_wide_traits/src/wide.rs b/fixed_wide_traits/src/wide.rs index 341aea9..dfb7b15 100644 --- a/fixed_wide_traits/src/wide.rs +++ b/fixed_wide_traits/src/wide.rs @@ -2,3 +2,15 @@ pub trait WideMul{ type Output; fn wide_mul(self,rhs:Rhs)->Self::Output; } +pub trait WideDiv{ + type Output; + fn wide_div(self,rhs:Rhs)->Self::Output; +} +pub trait WideDot{ + type Output; + fn wide_dot(self,rhs:Rhs)->Self::Output; +} +pub trait WideCross{ + type Output; + fn wide_cross(self,rhs:Rhs)->Self::Output; +}