We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac05ed commit fd2aed8Copy full SHA for fd2aed8
libm/src/math/support/int_traits.rs
@@ -296,7 +296,14 @@ int_impl!(i128, u128);
296
297
/// Trait for integers twice the bit width of another integer. This is implemented for all
298
/// primitives except for `u8`, because there is not a smaller primitive.
299
-pub trait DInt: MinInt {
+pub trait DInt:
300
+ MinInt
301
+ + core::ops::Add<Output = Self>
302
+ + core::ops::Sub<Output = Self>
303
+ + core::ops::Shl<u32, Output = Self>
304
+ + core::ops::Shr<u32, Output = Self>
305
+ + Ord
306
+{
307
/// Integer that is half the bit width of the integer this trait is implemented for
308
type H: HInt<D = Self>;
309
0 commit comments