Skip to main content

Invert

Trait Invert 

Source
pub trait Invert {
    type Output;

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

Perform an inversion on a field element (i.e. base field element or scalar)

Required Associated Types§

Source

type Output

Field element type

Required Methods§

Source

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

Invert a field element.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<C> Invert for NonZeroScalar<C>

Source§

impl<F: Field> Invert for F

Available on crate feature arithmetic only.