Trait modicum::Invert

source ·
pub trait Invert: Egcd {
    // Provided method
    fn invert<P: Modulus<Self>>(self, p: P) -> Option<Self>
       where Self: TryFrom<P>,
             <Self as TryFrom<P>>::Error: Debug { ... }
}
Expand description

A trait to invert an integer modulo a modulus.

Provided Methods§

source

fn invert<P: Modulus<Self>>(self, p: P) -> Option<Self>
where Self: TryFrom<P>, <Self as TryFrom<P>>::Error: Debug,

Invert an integer modulo a modulus.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Egcd> Invert for T