crypto_bigint

Trait NegMod

Source
pub trait NegMod {
    type Output;

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

Compute -self mod p.

Required Associated Types§

Source

type Output

Output type.

Required Methods§

Source

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

Compute -self 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<const LIMBS: usize> NegMod for Uint<LIMBS>

Source§

type Output = Uint<LIMBS>