diff --git a/lib/fixed_wide/src/fixed.rs b/lib/fixed_wide/src/fixed.rs index b7d18dda..261bc29c 100644 --- a/lib/fixed_wide/src/fixed.rs +++ b/lib/fixed_wide/src/fixed.rs @@ -101,28 +101,6 @@ impl_from!( i8,i16,i32,i64,i128,isize ); -impl PartialEq for Fixed -where - T:Copy, - BInt:::From, -{ - #[inline] - fn eq(&self,&other:&T)->bool{ - self.bits.eq(&other.into()) - } -} - -impl PartialOrd for Fixed - where - T:Copy, - BInt:::From, -{ - #[inline] - fn partial_cmp(&self,&other:&T)->Option{ - self.bits.partial_cmp(&other.into()) - } -} - impl std::ops::Neg for Fixed{ type Output=Self; #[inline] @@ -328,16 +306,6 @@ macro_rules! impl_additive_operator { self.$method(other) } } - impl core::ops::$trait for $struct - where - BInt:::From, - { - type Output = $output; - #[inline] - fn $method(self, other: U) -> Self::Output { - Self::from_bits(self.bits.$method(BInt::::from(other).shl(F as u32))) - } - } }; } macro_rules! impl_additive_assign_operator { @@ -348,15 +316,6 @@ macro_rules! impl_additive_assign_operator { self.bits.$method(other.bits); } } - impl core::ops::$trait for $struct - where - BInt:::From, - { - #[inline] - fn $method(&mut self, other: U) { - self.bits.$method(BInt::::from(other).shl(F as u32)); - } - } }; }