Skip to main content

ModMathInt

Trait ModMathInt 

Source
pub trait ModMathInt:
    FixedWidthUnsignedInt
    + From<u8>
    + PartialEq
    + PartialOrd
    + One
    + Zero
    + Parity
    + OverflowingAdd<Output = Self>
    + WideMul
    + CiosMontMul
    + WrappingAdd<Output = Self>
    + WrappingMul<Output = Self>
    + WrappingSub<Output = Self>
    + Shr<usize, Output = Self>
    + ShrAssign<usize>
    + HasPersonality { }
Available on crate feature modmath only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ModMathInt for T
where T: FixedWidthUnsignedInt + From<u8> + PartialEq + PartialOrd + One + Zero + Parity + OverflowingAdd<Output = Self> + WideMul + CiosMontMul + WrappingAdd<Output = Self> + WrappingMul<Output = Self> + WrappingSub<Output = Self> + Shr<usize, Output = Self> + ShrAssign<usize> + HasPersonality,