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

    fn sub_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