pub trait Fp {
    // Required methods
    fn pow(&self, rhs: usize) -> Self;
    fn powi(&self, rhs: isize) -> Self;
    fn inv(&self) -> Self;
}

Required Methods§

Source

fn pow(&self, rhs: usize) -> Self

Source

fn powi(&self, rhs: isize) -> Self

Source

fn inv(&self) -> Self

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§

Source§

impl<const MOD: usize> Fp for Modint<MOD>