ModInit

Trait ModInit 

Source
pub trait ModInit {
    type M;

    // Required method
    fn new(modulus: Self::M) -> Self;
}

Required Associated Types§

Source

type M

Required Methods§

Source

fn new(modulus: Self::M) -> 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<T> ModInit for ModularOpsU64<T>
where T: Modulus<Element = u64>,

Source§

type M = T