Skip to main content

Invert

Trait Invert 

Source
pub trait Invert: Sized {
    type Output;

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

Constant-time inversion.

Required Associated Types§

Source

type Output

Output of the inversion.

Required Methods§

Source

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".

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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