pub struct Resolver { /* private fields */ }Implementations§
Source§impl Resolver
impl Resolver
pub fn new() -> Self
pub fn resolve(&self, url: &str) -> Result<Vec<Rc<Module>>, Box<dyn Error>>
pub fn insert_file_extension( &mut self, module: &str, file_extension: &str, ) -> Result<(), Box<dyn Error>>
pub fn insert_manifest( &mut self, manifest: &ModuleManifest, ) -> Result<(), Box<dyn Error>>
pub fn insert_protocol( &mut self, module: &str, protocol: &str, ) -> Result<(), Box<dyn Error>>
pub fn insert_prefix( &mut self, module: &str, prefix: &str, ) -> Result<(), Box<dyn Error>>
pub fn insert_pattern( &mut self, module: &str, pattern: &str, ) -> Result<(), Box<dyn Error>>
pub fn try_from_iter<I, T>(iter: I) -> Result<Self, Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolver
impl RefUnwindSafe for Resolver
impl !Send for Resolver
impl !Sync for Resolver
impl Unpin for Resolver
impl UnwindSafe for Resolver
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