Skip to main content

HalModuleImpl

Trait HalModuleImpl 

Source
pub unsafe trait HalModuleImpl<BE: Backend>: Backend {
    // Required method
    fn new(n: u64) -> Module<BE>;
}
Expand description

Module construction extension point.

§Safety

Implementations must return a module handle that is valid for the backend and ring degree, and uphold the backend safety contract.

Required Methods§

Source

fn new(n: u64) -> Module<BE>

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§