pub trait NativeModule<'cx> {
const NAME: &'static str;
const VARIABLE_NAME: &'static str;
const SOURCE: &'static str;
// Required method
fn module(&self, cx: &'cx Context) -> Option<Object<'cx>>;
}Required Associated Constants§
const NAME: &'static str
const VARIABLE_NAME: &'static str
const SOURCE: &'static str
Required Methods§
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.