Trait quickjs_runtime::jsutils::modules::NativeModuleLoader
source · pub trait NativeModuleLoader {
// Required methods
fn has_module(&self, realm: &QuickJsRealmAdapter, module_name: &str) -> bool;
fn get_module_export_names(
&self,
realm: &QuickJsRealmAdapter,
module_name: &str,
) -> Vec<&str>;
fn get_module_exports(
&self,
realm: &QuickJsRealmAdapter,
module_name: &str,
) -> Vec<(&str, QuickJsValueAdapter)>;
}