Skip to main content

ModMathIntCt

Trait ModMathIntCt 

Source
pub trait ModMathIntCt:
    FixedWidthUnsignedInt
    + From<u8>
    + PartialEq
    + PartialOrd
    + One
    + Zero
    + Parity
    + OverflowingAdd<Output = Self>
    + WideMul
    + CiosMontMulCt
    + WrappingAdd<Output = Self>
    + WrappingMul<Output = Self>
    + WrappingSub<Output = Self>
    + Shr<usize, Output = Self>
    + ShrAssign<usize>
    + ConditionallySelectable
    + ConstantTimeLess
    + BitAnd<Output = Self>
    + HasPersonality
    + CtIsZero { }
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> ModMathIntCt for T
where T: FixedWidthUnsignedInt + From<u8> + PartialEq + PartialOrd + One + Zero + Parity + OverflowingAdd<Output = Self> + WideMul + CiosMontMulCt + WrappingAdd<Output = Self> + WrappingMul<Output = Self> + WrappingSub<Output = Self> + Shr<usize, Output = Self> + ShrAssign<usize> + ConditionallySelectable + ConstantTimeLess + BitAnd<Output = Self> + HasPersonality + CtIsZero,