Parcourir la source

Added impls of `PrimInt` for `i128` and `u128`

Vincent Esche il y a 7 ans
Parent
commit
bc19c34934
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/int.rs

+ 4 - 0
src/int.rs

@@ -368,9 +368,13 @@ prim_int_impl!(u8,    i8,    u8);
 prim_int_impl!(u16,   i16,   u16);
 prim_int_impl!(u32,   i32,   u32);
 prim_int_impl!(u64,   i64,   u64);
+#[cfg(feature = "i128")]
+prim_int_impl!(u128,  i128,  u128);
 prim_int_impl!(usize, isize, usize);
 prim_int_impl!(i8,    i8,    u8);
 prim_int_impl!(i16,   i16,   u16);
 prim_int_impl!(i32,   i32,   u32);
 prim_int_impl!(i64,   i64,   u64);
+#[cfg(feature = "i128")]
+prim_int_impl!(i128,  i128,  u128);
 prim_int_impl!(isize, isize, usize);