1use crate::Mul;
2
3macro_rules! mul_impl {
4 ($($t:ty)*) => ($(
5 impl const Mul for $t {
6 type Output = $t;
7
8 #[inline]
9 fn mul(self, other: $t) -> $t { self * other }
10 }
11 )*)
12}
13
14mul_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 }