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)>;
}

Required Methods§

source

fn has_module(&self, realm: &QuickJsRealmAdapter, module_name: &str) -> bool

source

fn get_module_export_names( &self, realm: &QuickJsRealmAdapter, module_name: &str, ) -> Vec<&str>

source

fn get_module_exports( &self, realm: &QuickJsRealmAdapter, module_name: &str, ) -> Vec<(&str, QuickJsValueAdapter)>

Implementors§