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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§