pub struct ModuleLoader { /* private fields */ }Implementations§
Source§impl ModuleLoader
impl ModuleLoader
pub fn new(provider: Box<dyn ModuleProvider>) -> Self
pub fn load_module( &mut self, specifier: &str, from: Option<&str>, ) -> Result<Value, ApiError>
pub fn get_loaded_modules(&self) -> &HashMap<String, ModuleInfo>
pub fn clear_cache(&mut self)
Auto Trait Implementations§
impl Freeze for ModuleLoader
impl !RefUnwindSafe for ModuleLoader
impl Send for ModuleLoader
impl Sync for ModuleLoader
impl Unpin for ModuleLoader
impl !UnwindSafe for ModuleLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more