Trait MulMod

Source
pub trait MulMod<Rhs = Self> {
    type Output;

    // Required method
    fn mul_mod(&self, rhs: &Rhs, p: &Self) -> Self::Output;
}
Expand description

Compute self * rhs mod p.

Required Associated Types§

Source

type Output

Output type.

Required Methods§

Source

fn mul_mod(&self, rhs: &Rhs, p: &Self) -> Self::Output

Compute self * rhs mod p.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl MulMod for BoxedUint

Available on crate feature alloc only.
Source§

impl<const LIMBS: usize> MulMod for Uint<LIMBS>

Source§

type Output = Uint<LIMBS>