Struct rquickjs::FileResolver [−][src]
This is supported on crate feature
loader
only.The file module resolver
This resolver can be used as the nested backing resolver in user-defined resolvers.
Implementations
impl FileResolver
[src]
pub fn add_path<P>(&mut self, path: P) -> &mut FileResolver where
P: Into<RelativePathBuf>,
[src]
P: Into<RelativePathBuf>,
Add search path for modules
pub fn with_path<P>(self, path: P) -> FileResolver where
P: Into<RelativePathBuf>,
[src]
P: Into<RelativePathBuf>,
Add search path for modules
pub fn add_paths<I, P>(&mut self, paths: I) -> &mut FileResolver where
P: Into<RelativePathBuf>,
I: IntoIterator<Item = P>,
[src]
P: Into<RelativePathBuf>,
I: IntoIterator<Item = P>,
Add search paths for modules
pub fn with_paths<I, P>(self, paths: I) -> FileResolver where
P: Into<RelativePathBuf>,
I: IntoIterator<Item = P>,
[src]
P: Into<RelativePathBuf>,
I: IntoIterator<Item = P>,
Add search paths for modules
pub fn add_pattern<P>(&mut self, pattern: P) -> &mut FileResolver where
P: Into<String>,
[src]
P: Into<String>,
Add module file pattern
pub fn with_pattern<P>(self, pattern: P) -> FileResolver where
P: Into<String>,
[src]
P: Into<String>,
Add module file pattern
pub fn add_native(&mut self) -> &mut FileResolver
[src]
Add support for native modules
pub fn with_native(self) -> FileResolver
[src]
Add support for native modules
Trait Implementations
impl Debug for FileResolver
[src]
impl Default for FileResolver
[src]
pub fn default() -> FileResolver
[src]
impl Resolver for FileResolver
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileResolver
[src]
impl Send for FileResolver
[src]
impl Sync for FileResolver
[src]
impl Unpin for FileResolver
[src]
impl UnwindSafe for FileResolver
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ParallelSend for T where
T: Send,
[src]
T: Send,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,