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§
Sourcefn into_js_module(self, context: &mut Context) -> Module
fn into_js_module(self, context: &mut Context) -> Module
Converts the type into a JS module.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".