Skip to main content

AddMod

Trait AddMod 

Source
pub trait AddMod<Rhs = Self> {
    type Output;

    // Required method
    fn add_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 add_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 AddMod for UInt<1>

Source§

impl AddMod for UInt<2>

Source§

impl AddMod for UInt<3>

Source§

impl AddMod for UInt<4>

Source§

impl AddMod for UInt<5>

Source§

impl AddMod for UInt<6>

Source§

impl AddMod for UInt<7>

Source§

impl AddMod for UInt<8>

Source§

impl AddMod for UInt<9>

Source§

impl AddMod for UInt<10>

Source§

type Output = UInt<10>

Source§

impl AddMod for UInt<11>

Source§

type Output = UInt<11>

Source§

impl AddMod for UInt<12>

Source§

type Output = UInt<12>