diff --git a/fixed_wide/src/fixed.rs b/fixed_wide/src/fixed.rs index 852ccff..985d530 100644 --- a/fixed_wide/src/fixed.rs +++ b/fixed_wide/src/fixed.rs @@ -70,15 +70,22 @@ impl Fixed<1,F>{ } } -impl From for Fixed - where - BInt:From -{ - #[inline] - fn from(value:T)->Self{ - Self::from_bits(BInt::<{N}>::from(value)<{ + $( + impl From<$from> for Fixed{ + #[inline] + fn from(value:$from)->Self{ + Self::from_bits(BInt::<{N}>::from(value)< PartialEq for Fixed{ #[inline]