Struct rquickjs_core::FileResolver [−][src]
pub struct FileResolver { /* fields omitted */ }
This is supported on crate feature
loader
only.Expand description
The file module resolver
This resolver can be used as the nested backing resolver in user-defined resolvers.
Implementations
Add search path for modules
Add search path for modules
pub fn add_paths<I: IntoIterator<Item = P>, P: Into<RelativePathBuf>>(
&mut self,
paths: I
) -> &mut Self
pub fn add_paths<I: IntoIterator<Item = P>, P: Into<RelativePathBuf>>(
&mut self,
paths: I
) -> &mut Self
Add search paths for modules
pub fn with_paths<I: IntoIterator<Item = P>, P: Into<RelativePathBuf>>(
self,
paths: I
) -> Self
pub fn with_paths<I: IntoIterator<Item = P>, P: Into<RelativePathBuf>>(
self,
paths: I
) -> Self
Add search paths for modules
Add module file pattern
Add module file pattern
Add support for native modules
Add support for native modules