Skip to main content

SubMod

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl SubMod for UInt<1>

Source§

impl SubMod for UInt<2>

Source§

impl SubMod for UInt<3>

Source§

impl SubMod for UInt<4>

Source§

impl SubMod for UInt<5>

Source§

impl SubMod for UInt<6>

Source§

impl SubMod for UInt<7>

Source§

impl SubMod for UInt<8>

Source§

impl SubMod for UInt<9>

Source§

impl SubMod for UInt<10>

Source§

type Output = UInt<10>

Source§

impl SubMod for UInt<11>

Source§

type Output = UInt<11>

Source§

impl SubMod for UInt<12>

Source§

type Output = UInt<12>