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

    fn add_mod(&self, rhs: &Rhs, p: &Self) -> Self::Output;
}
Expand description

Compute self + rhs mod p.

Required Associated Types

Output type.

Required Methods

Compute self + rhs mod p.

Assumes self and rhs are < p.

Implementors