Trait crypto_bigint::SubMod

source ·
pub trait SubMod<Rhs = Self> {
    type Output;

    // Required method
    fn sub_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 sub_mod(&self, rhs: &Rhs, p: &Self) -> Self::Output

Compute self - rhs mod p.

Assumes self and rhs are < p.

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Output = Uint<LIMBS>