pub struct FileSystemModuleProvider { /* private fields */ }Implementations§
Source§impl FileSystemModuleProvider
impl FileSystemModuleProvider
pub fn new(base_path: PathBuf) -> Self
pub fn add_module(&mut self, module: ModuleInfo)
Trait Implementations§
Source§impl ModuleProvider for FileSystemModuleProvider
impl ModuleProvider for FileSystemModuleProvider
fn resolve_module( &self, specifier: &str, from: Option<&str>, ) -> Result<ModuleResolution, ApiError>
fn load_module(&self, resolution: &ModuleResolution) -> Result<String, ApiError>
fn get_module_info(&self, module_id: &str) -> Option<&ModuleInfo>
Auto Trait Implementations§
impl Freeze for FileSystemModuleProvider
impl RefUnwindSafe for FileSystemModuleProvider
impl Send for FileSystemModuleProvider
impl Sync for FileSystemModuleProvider
impl Unpin for FileSystemModuleProvider
impl UnwindSafe for FileSystemModuleProvider
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