pub trait ScriptModuleLoader {
    // Required methods
    fn normalize_path(
        &self,
        realm: &QuickJsRealmAdapter,
        ref_path: &str,
        path: &str,
    ) -> Option<String>;
    fn load_module(
        &self,
        realm: &QuickJsRealmAdapter,
        absolute_path: &str,
    ) -> String;
}

Required Methods§

source

fn normalize_path( &self, realm: &QuickJsRealmAdapter, ref_path: &str, path: &str, ) -> Option<String>

source

fn load_module( &self, realm: &QuickJsRealmAdapter, absolute_path: &str, ) -> String

Implementors§