Skip to main content

Invert

Trait Invert 

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

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>