pub trait BaseArithmetic: Sized + From<u8> + Zero<Output = Self> + One<Output = Self> + IntegerSquareRoot + Add + AddAssign + Sub<Output = Self> + SubAssign + Mul + MulAssign + Div<Output = Self> + DivAssign + Rem<Output = Self> + RemAssign + Shl<u32, Output = Self> + Shr<u32, Output = Self> + CheckedShl + CheckedShr + CheckedAdd + CheckedSub + CheckedMul + CheckedDiv + CheckedRem + CheckedNeg + Ensure + Saturating + PartialOrd + Ord + Bounded + HasCompact + Clone + TryFrom<u8> + TryInto<u8> + TryFrom<u16> + TryInto<u16> + TryFrom<u32> + TryInto<u32> + TryFrom<u64> + TryInto<u64> + TryFrom<u128> + TryInto<u128> + TryFrom<usize> + TryInto<usize> + UniqueSaturatedFrom<u8> + UniqueSaturatedInto<u8> + UniqueSaturatedFrom<u16> + UniqueSaturatedInto<u16> + UniqueSaturatedFrom<u32> + UniqueSaturatedInto<u32> + UniqueSaturatedFrom<u64> + UniqueSaturatedInto<u64> + UniqueSaturatedFrom<u128> + UniqueSaturatedInto<u128> { }
Expand description
A meta trait for arithmetic type operations, regardless of any limitation on size.
Object Safety§
This trait is not object safe.