Struct rquickjs_core::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: Into<RelativePathBuf>>(&mut self, path: P) -> &mut Self
[src]
Add search path for modules
pub fn with_path<P: Into<RelativePathBuf>>(mut self: Self, path: P) -> Self
[src]
Add search path for modules
pub fn add_paths<I: IntoIterator<Item = P>, P: Into<RelativePathBuf>>(
&mut self,
paths: I
) -> &mut Self
[src]
&mut self,
paths: I
) -> &mut Self
Add search paths for modules
pub fn with_paths<I: IntoIterator<Item = P>, P: Into<RelativePathBuf>>(
mut self: Self,
paths: I
) -> Self
[src]
mut self: Self,
paths: I
) -> Self
Add search paths for modules
pub fn add_pattern<P: Into<String>>(&mut self, pattern: P) -> &mut Self
[src]
Add module file pattern
pub fn with_pattern<P: Into<String>>(mut self: Self, pattern: P) -> Self
[src]
Add module file pattern
pub fn add_native(&mut self) -> &mut Self
[src]
Add support for native modules
pub fn with_native(mut self: Self) -> Self
[src]
Add support for native modules
Trait Implementations
impl Debug for FileResolver
[src]
impl Default for 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, 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>,