pub trait Invert: Sized {
    type Output;

    // Required method
    fn invert(&self) -> Self::Output;
}
Expand description

Constant-time inversion.

Required Associated Types§

type Output

Output of the inversion.

Required Methods§

fn invert(&self) -> Self::Output

Computes the inverse.

Implementors§

§

impl<MOD, const LIMBS: usize> Invert for Residue<MOD, LIMBS>where MOD: ResidueParams<LIMBS>,

§

type Output = CtOption<Residue<MOD, LIMBS>>

§

impl<MOD, const LIMBS: usize> Invert for NonZero<Residue<MOD, LIMBS>>where MOD: ResidueParams<LIMBS>,

§

type Output = NonZero<Residue<MOD, LIMBS>>

§

impl<const LIMBS: usize> Invert for DynResidue<LIMBS>