Skip to main content

NttFriendly

Trait NttFriendly 

Source
pub trait NttFriendly: Modulus {
    const PRIMITIVE_ROOT: u32 = _;
    const EXP: u32 = _;
    const ODD: u32 = _;

    // Required method
    fn cache() -> &'static OnceLock<ButterflyCache<Self>>;

    // Provided method
    fn butterfly_cache() -> &'static ButterflyCache<Self> { ... }
}

Provided Associated Constants§

Source

const PRIMITIVE_ROOT: u32 = _

Source

const EXP: u32 = _

Source

const ODD: u32 = _

Required Methods§

Source

fn cache() -> &'static OnceLock<ButterflyCache<Self>>

Provided Methods§

Source

fn butterfly_cache() -> &'static ButterflyCache<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§