numaxiom 0.0.2

Lightweight numeric marker traits for ranges/signs plus constants and ops; std by default, no_std optional.
Documentation
/// Supplies a checked multiplication that returns `None` on overflow.
pub trait CheckedMul<Rhs = Self> {
    type Output;

    fn checked_mul(self, rhs: Rhs) -> Option<Self::Output>;
}

macro_rules! impl_checked_mul {
    ($($ty:ty),+ $(,)?) => {
        $(impl CheckedMul for $ty {
            type Output = $ty;

            #[inline]
            fn checked_mul(self, rhs: Self) -> Option<Self::Output> {
                <$ty>::checked_mul(self, rhs)
            }
        })+
    };
}

impl_checked_mul!(i8, i16, i32, i64, i128, isize);
impl_checked_mul!(u8, u16, u32, u64, u128, usize);