NativeModule

Trait NativeModule 

Source
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§

Source

const NAME: &'static str

Source

const VARIABLE_NAME: &'static str

Source

const SOURCE: &'static str

Required Methods§

Source

fn module(&self, cx: &'cx Context) -> Option<Object<'cx>>

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§