Skip to main content

InvMod

Trait InvMod 

Source
pub trait InvMod<Rhs = Self>: Sized {
    type Output;

    // Required method
    fn inv_mod(&self, p: &Rhs) -> CtOption<Self::Output>;
}
👎Deprecated since 0.7.0:

please use InvertMod instead

Expand description

Compute 1 / self mod p.

Required Associated Types§

Source

type Output

👎Deprecated since 0.7.0:

please use InvertMod instead

Output type.

Required Methods§

Source

fn inv_mod(&self, p: &Rhs) -> CtOption<Self::Output>

👎Deprecated since 0.7.0:

please use InvertMod instead

Compute 1 / self mod p.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T, Rhs> InvMod<Rhs> for T
where T: InvertMod<Rhs>,

Source§

type Output = <T as InvertMod<Rhs>>::Output