pub trait NegMod {
    type Output;

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

Compute -self mod p.

Required Associated Types§

type Output

Output type.

Required Methods§

fn neg_mod(&self, p: &Self) -> Self::Output

Compute -self mod p.

Implementors§

§

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

§

type Output = Uint<LIMBS>