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 SubMod for UInt<1>

§

type Output = UInt<1>

source§

impl SubMod for UInt<2>

§

type Output = UInt<2>

source§

impl SubMod for UInt<3>

§

type Output = UInt<3>

source§

impl SubMod for UInt<4>

§

type Output = UInt<4>

source§

impl SubMod for UInt<5>

§

type Output = UInt<5>

source§

impl SubMod for UInt<6>

§

type Output = UInt<6>

source§

impl SubMod for UInt<7>

§

type Output = UInt<7>

source§

impl SubMod for UInt<8>

§

type Output = UInt<8>

source§

impl SubMod for UInt<9>

§

type Output = UInt<9>

source§

impl SubMod for UInt<10>

§

type Output = UInt<10>

source§

impl SubMod for UInt<11>

§

type Output = UInt<11>

source§

impl SubMod for UInt<12>

§

type Output = UInt<12>