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§
Required Methods§
fn cache() -> &'static OnceLock<ButterflyCache<Self>>
Provided Methods§
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.