Function strict_mod_inv

Source
pub fn strict_mod_inv<T>(a: T, modulus: &T) -> Option<T>
where for<'a> T: Zero + One + PartialEq + Sub<Output = T> + PartialOrd + Mul<&'a T, Output = T> + Div<&'a T, Output = T> + Sub<&'a T, Output = T> + Add<&'a T, Output = T> + AddAssign<&'a T>, for<'a> &'a T: Div<&'a T, Output = T> + Sub<T, Output = T>,
Expand description

ยงModular Inverse (Strict)

Most constrained version that works with references. Requires reference-based operations for division and subtraction.