Skip to main content

IntoJsModule

Trait IntoJsModule 

Source
pub trait IntoJsModule {
    // Required method
    fn into_js_module(self, context: &mut Context) -> Module;
}
Expand description

A trait to convert a type into a JS module.

Required Methods§

Source

fn into_js_module(self, context: &mut Context) -> Module

Converts the type into a JS module.

Implementors§

Source§

impl<T> IntoJsModule for T
where T: IntoIterator<Item = (JsString, NativeFunction)> + Clone,