Skip to main content

SubMod

Trait SubMod 

Source
pub trait SubMod<Rhs = Self, Mod = NonZero<Self>> {
    type Output;

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

Compute self - rhs mod p.

Assumes self and rhs are < p.

Implementors§

Source§

impl SubMod for BoxedUint

Available on crate feature alloc only.
Source§

impl SubMod for Limb

Source§

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

Source§

type Output = Uint<LIMBS>