Struct rquickjs_core::FileResolver[][src]

pub struct FileResolver { /* fields omitted */ }
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]

Add search paths for modules

pub fn with_paths<I: IntoIterator<Item = P>, P: Into<RelativePathBuf>>(
    mut self: Self,
    paths: I
) -> Self
[src]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.