Skip to main content

NegMod

Trait NegMod 

Source
pub trait NegMod<Mod = NonZero<Self>> {
    type Output;

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

Compute -self mod p.

Required Associated Types§

Source

type Output

Output type.

Required Methods§

Source

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

Compute -self mod p.

Implementors§

Source§

impl NegMod for BoxedUint

Available on crate feature alloc only.
Source§

impl NegMod for Limb

Source§

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

Source§

type Output = Uint<LIMBS>